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.
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
For more information about our API support guarantees, see here.
Signature
get absolutePath(): string;
Type: string
attachState
For more information about our API support guarantees, see here.
Signature
get attachState(): AttachState;
Type: AttachState
channelsRoutingContext
For more information about our API support guarantees, see here.
Signature
get channelsRoutingContext(): this;
Type: this
clientDetails
For more information about our API support guarantees, see here.
Signature
get clientDetails(): IClientDetails;
Type: IClientDetails
clientId
For more information about our API support guarantees, see here.
Signature
get clientId(): string | undefined;
Type: string | undefined
connected
For more information about our API support guarantees, see here.
Signature
get connected(): boolean;
Type: boolean
deltaManager
For more information about our API support guarantees, see here.
Signature
get deltaManager(): IDeltaManagerErased;
Type: IDeltaManagerErased
deltaManagerInternal
For more information about our API support guarantees, see here.
Signature
readonly deltaManagerInternal: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
Type: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>
disposed
For more information about our API support guarantees, see here.
Signature
get disposed(): boolean;
Type: boolean
entryPoint
Exposes a handle to the root object / entryPoint of the data store. Use this as the primary way of interacting with it.
For more information about our API support guarantees, see here.
Signature
readonly entryPoint: IFluidHandleInternal<FluidObject>;
Type: IFluidHandleInternal<FluidObject>
id
For more information about our API support guarantees, see here.
Signature
readonly id: string;
Type: string
idCompressor
For more information about our API support guarantees, see here.
Signature
get idCompressor(): IIdCompressor | undefined;
Type: IIdCompressor | undefined
IFluidHandleContext
For more information about our API support guarantees, see here.
Signature
get IFluidHandleContext(): this;
Type: this
isAttached
For more information about our API support guarantees, see here.
Signature
get isAttached(): boolean;
Type: boolean
logger
For more information about our API support guarantees, see here.
Signature
get logger(): ITelemetryLoggerExt;
Type: ITelemetryLoggerExt
objectsRoutingContext
For more information about our API support guarantees, see here.
Signature
get objectsRoutingContext(): this;
Type: this
options
For more information about our API support guarantees, see here.
Signature
readonly options: Record<string | number, any>;
Type: Record<string | number, any>
rootRoutingContext
For more information about our API support guarantees, see here.
Signature
get rootRoutingContext(): this;
Type: this
routeContext
For more information about our API support guarantees, see here.
Signature
get routeContext(): IFluidHandleContext;
Type: IFluidHandleContext
visibilityState
For more information about our API support guarantees, see here.
Signature
visibilityState: VisibilityState;
Type: VisibilityState