FluidDataStoreRuntime Class
Base data store class
To use, import via @fluidframework/datastore/legacy
.
For more information about our API support guarantees, see here.
Signature
export declare class FluidDataStoreRuntime extends TypedEventEmitter<IFluidDataStoreRuntimeEvents> implements IFluidDataStoreChannel, IFluidDataStoreRuntime, IFluidHandleContext
Extends: TypedEventEmitter<IFluidDataStoreRuntimeEvents>
Implements: IFluidDataStoreChannel, IFluidDataStoreRuntime, IFluidHandleContext
Constructors
Constructor | Alerts | Description |
---|---|---|
(constructor)(dataStoreContext, sharedObjectRegistry, existing, provideEntryPoint) | Alpha |
Create an instance of a DataStore runtime. |
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
absolutePath | Alpha |
readonly |
string | |
attachState | Alpha |
readonly |
AttachState | |
channelsRoutingContext | Alpha |
readonly |
this | |
clientDetails | Alpha |
readonly |
IClientDetails | |
clientId | Alpha |
readonly |
string | undefined | |
connected | Alpha |
readonly |
boolean | |
deltaManager | Alpha |
readonly |
IDeltaManagerErased | |
deltaManagerInternal | Alpha |
readonly |
IDeltaManager<ISequencedDocumentMessage, IDocumentMessage> | |
disposed | Alpha |
readonly |
boolean | |
entryPoint | Alpha |
readonly |
IFluidHandleInternal<FluidObject> | Exposes a handle to the root object / entryPoint of the data store. Use this as the primary way of interacting with it. |
id | Alpha |
readonly |
string | |
idCompressor | Alpha |
readonly |
IIdCompressor | undefined | |
IFluidHandleContext | Alpha |
readonly |
this | |
isAttached | Alpha |
readonly |
boolean | |
logger | Alpha |
readonly |
ITelemetryLoggerExt | |
objectsRoutingContext | Alpha |
readonly |
this | |
options | Alpha |
readonly |
Record<string | number, any> | |
rootRoutingContext | Alpha |
readonly |
this | |
routeContext | Alpha |
readonly |
IFluidHandleContext | |
visibilityState | Alpha |
VisibilityState |
Constructor Details
(constructor)
Create an instance of a DataStore runtime.
To use, import via @fluidframework/datastore/alpha
.
For more information about our API support guarantees, see here.
Signature
constructor(dataStoreContext: IFluidDataStoreContext, sharedObjectRegistry: ISharedObjectRegistry, existing: boolean, provideEntryPoint: (runtime: IFluidDataStoreRuntime) => Promise<FluidObject>);
Parameters
Parameter | Type | Description |
---|---|---|
dataStoreContext | IFluidDataStoreContext | Context object for the runtime. |
sharedObjectRegistry | ISharedObjectRegistry | The registry of shared objects that this data store will be able to instantiate. |
existing | boolean | Pass 'true' if loading this datastore from an existing file; pass 'false' otherwise. |
provideEntryPoint | (runtime: IFluidDataStoreRuntime) => Promise<FluidObject> | Function to initialize the entryPoint object for the data store runtime. The handle to this data store runtime will point to the object returned by this function. If this function is not provided, the handle will be left undefined. This is here so we can start making handles a first-class citizen and the primary way of interacting with some Fluid objects, and should be used if possible. |
Property Details
absolutePath
To use, import via @fluidframework/datastore/alpha
.
For more information about our API support guarantees, see here.
Signature
get absolutePath(): string;
Type: string
attachState
To use, import via @fluidframework/datastore/alpha
.
For more information about our API support guarantees, see here.
Signature
get attachState(): AttachState;
Type: AttachState
channelsRoutingContext
To use, import via @fluidframework/datastore/alpha
.
For more information about our API support guarantees, see here.
Signature
get channelsRoutingContext(): this;
Type: this
clientDetails
To use, import via @fluidframework/datastore/alpha
.
For more information about our API support guarantees, see here.
Signature
get clientDetails(): IClientDetails;
Type: IClientDetails
clientId
To use, import via @fluidframework/datastore/alpha
.
For more information about our API support guarantees, see here.
Signature
get clientId(): string | undefined;
Type: string | undefined
connected
To use, import via @fluidframework/datastore/alpha
.
For more information about our API support guarantees, see here.
Signature
get connected(): boolean;
Type: boolean
deltaManager
To use, import via @fluidframework/datastore/alpha
.
For more information about our API support guarantees, see here.
Signature
get deltaManager(): IDeltaManagerErased;
Type: IDeltaManagerErased
deltaManagerInternal
To use, import via @fluidframework/datastore/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly deltaManagerInternal: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
Type: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>
disposed
To use, import via @fluidframework/datastore/alpha
.
For more information about our API support guarantees, see here.
Signature
get disposed(): boolean;
Type: boolean