Skip to content

CRDTActorBindings

Defined in: packages/core/src/crdt-actor-binding.ts:454

First-seen registrations for the actors a replica has admitted. A different registration for a remembered actor is rejected. Memory is bounded without ever refusing a registration: beyond MAX_CRDT_ACTORS_PER_SIGNER a signer’s least recently used binding is forgotten, and beyond MAX_CRDT_ACTOR_BINDINGS in all the least recently used binding of the signer holding the most bindings is forgotten, taken from signers outside the preferred set (the current writers) first.

new CRDTActorBindings(): CRDTActorBindings

CRDTActorBindings

get size(): number

Defined in: packages/core/src/crdt-actor-binding.ts:458

number

check(entries): void

Defined in: packages/core/src/crdt-actor-binding.ts:471

Throw if any pair conflicts with a remembered binding or another pair.

Iterable<readonly [string, CRDTActorRegistration]>

void


get(actor): CRDTSignedActorRegistration | undefined

Defined in: packages/core/src/crdt-actor-binding.ts:462

string

CRDTSignedActorRegistration | undefined


record(entries, preferred?): void

Defined in: packages/core/src/crdt-actor-binding.ts:487

Remember pairs, refreshing ones already known.

Iterable<readonly [string, CRDTSignedActorRegistration]>

ReadonlySet<string>

void


registrations(actors?): CRDTSignedActorRegistration[]

Defined in: packages/core/src/crdt-actor-binding.ts:545

Remembered registrations for actors, or every remembered one.

Iterable<string, any, any>

CRDTSignedActorRegistration[]


signerCount(signer): number

Defined in: packages/core/src/crdt-actor-binding.ts:466

string

number