Skip to main content

@fluidframework/ordered-collection Package

Interfaces

InterfaceAlertsDescription
IConsensusOrderedCollectionLegacy

Consensus Ordered Collection interface

An consensus ordered collection is a distributed data structure, which holds a collection of JSON-able or handles, and has a deterministic add/remove order.

IConsensusOrderedCollectionEventsLegacyEvents notifying about addition, acquisition, release and completion of items
IOrderedCollectionLegacy

Ordered Collection interface

Collection of objects that has deterministic add and remove ordering. Object implementing this interface can be used as the data backing for the ConsensusOrderedCollection

ISnapshotableLegacy

Interface for object that can be snapshoted

TODO: move this to be use in other place TODO: currently input and output is not symmetrical, can they become symmetrical?

Classes

ClassAlertsDescription
ConsensusOrderedCollectionLegacy

Implementation of a consensus collection shared object

Implements the shared object's communication, and the semantics around the release/complete mechanism following acquire.

Generally not used directly. A derived type will pass in a backing data type IOrderedCollection that will define the deterministic add/acquire order and snapshot ability.

ConsensusQueueClassLegacy

Implementation of a consensus stack

An derived type of ConsensusOrderedCollection with a queue as the backing data and order.

Enumerations

EnumAlertsDescription
ConsensusResultLegacy

Types

TypeAliasAlertsDescription
ConsensusCallbackLegacyCallback provided to acquire() and waitAndAcquire() methods.
ConsensusQueueLegacy

Implementation of a consensus stack

An derived type of ConsensusOrderedCollection with a queue as the backing data and order.

Variables

VariableAlertsModifiersTypeDescription
ConsensusQueueLegacyreadonlyimport("@fluidframework/shared-object-base/internal").ISharedObjectKind<IConsensusOrderedCollection<any>> & import("@fluidframework/shared-object-base/internal").SharedObjectKind<IConsensusOrderedCollection<any>>

Implementation of a consensus stack

An derived type of ConsensusOrderedCollection with a queue as the backing data and order.

Variable Details

ConsensusQueue

Implementation of a consensus stack

An derived type of ConsensusOrderedCollection with a queue as the backing data and order.

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/ordered-collection/legacy.

For more information about our API support guarantees, see here.

Signature

ConsensusQueue: import("@fluidframework/shared-object-base/internal").ISharedObjectKind<IConsensusOrderedCollection<any>> & import("@fluidframework/shared-object-base/internal").SharedObjectKind<IConsensusOrderedCollection<any>>

Type: import("@fluidframework/shared-object-base/internal").ISharedObjectKind<IConsensusOrderedCollection<any>> & import("@fluidframework/shared-object-base/internal").SharedObjectKind<IConsensusOrderedCollection<any>>