CharIdAllocator
Keep one allocator per author session, even when restoring or replacing snapshots.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CharIdAllocator(
actor):CharIdAllocator
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”CharIdAllocator
Properties
Section titled “Properties”
readonlyactor:string
Methods
Section titled “Methods”generateAfter()
Section titled “generateAfter()”generateAfter(
before,count?):CharId
Parameters
Section titled “Parameters”before
Section titled “before”CharId | "start"
count?
Section titled “count?”number
Returns
Section titled “Returns”reserve()
Section titled “reserve()”reserve(
start,count):void
Reserve identities from a restored author log before allocating more characters.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void