\FAAIdStorageHandler

Implement id storage handler

This class provides interfaces to manage auto increments in file system. The storage is a centralized service in our docker swarm. Only authorized instances can sync with this service

Summary

Methods
Properties
Constants
GetNextOfSequence()
ListIds()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

GetNextOfSequence()

GetNextOfSequence(string  $type,boolean  $dry_run = false): \FAA\Obj\Result

Provide new entity id Load id from buffer by given type or recreate the id storage index

Parameters

string $type

The system object type

boolean $dry_run

Returns

\FAA\Obj\Result —

A result object with a numeric unique id as payload

ListIds()

ListIds(): \FAA\Obj\Result

Get the list of ids

Returns

\FAA\Obj\Result