Skip to main content
Version: v1

SharedIntervalCollection Class

This API is deprecated and will be removed in a future release.
  • SharedIntervalCollection is not maintained and is planned to be removed.

Signature

export declare class SharedIntervalCollection extends SharedObject implements ISharedIntervalCollection<Interval>

Extends: SharedObject

Implements: ISharedIntervalCollection<Interval

Constructors

ConstructorDescription
(constructor)(id, runtime, attributes)Constructs a new shared SharedIntervalCollection. If the object is non-local an id and service interfaces will be provided

Static Methods

MethodReturn TypeDescription
create(runtime, id)SharedIntervalCollectionCreate a SharedIntervalCollection
getFactory()IChannelFactoryGet a factory for SharedIntervalCollection to register with the data store.

Properties

PropertyTypeDescription
[Symbol.toStringTag]string

Methods

MethodAlertsReturn TypeDescription
applyStashedOp()void
getIntervalCollection(label)IntervalCollection<Interval>
getIntervalCollectionPath(label)stringCreates the full path of the intervalCollection label
loadCore(storage)Promise<void>
onDisconnect()void
processCore(message, local, localOpMetadata)void
reSubmitCore(content, localOpMetadata)void
summarizeCore(serializer)ISummaryTreeWithStats
waitIntervalCollection(label)DeprecatedPromise<IntervalCollection<Interval>>

Constructor Details

(constructor)

Constructs a new shared SharedIntervalCollection. If the object is non-local an id and service interfaces will be provided

Signature

constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);

Parameters

ParameterTypeDescription
idstring
runtimeIFluidDataStoreRuntime
attributesIChannelAttributes

Property Details

[Symbol.toStringTag]

Signature

readonly [Symbol.toStringTag]: string;

Type: string

Method Details

applyStashedOp

Signature

protected applyStashedOp(): void;

create

Create a SharedIntervalCollection

Signature

static create(runtime: IFluidDataStoreRuntime, id?: string): SharedIntervalCollection;

Parameters

ParameterModifiersTypeDescription
runtimeIFluidDataStoreRuntimedata store runtime the new shared map belongs to
idoptionalstringoptional name of the shared map

Returns

newly create shared map (but not attached yet)

Return type: SharedIntervalCollection

getFactory

Get a factory for SharedIntervalCollection to register with the data store.

Signature

static getFactory(): IChannelFactory;

Returns

a factory that creates and load SharedIntervalCollection

Return type: IChannelFactory

getIntervalCollection

Signature

getIntervalCollection(label: string): IntervalCollection<Interval>;

Parameters

ParameterTypeDescription
labelstring

Returns

Return type: IntervalCollection<Interval>

getIntervalCollectionPath

Creates the full path of the intervalCollection label

Signature

protected getIntervalCollectionPath(label: string): string;

Parameters

ParameterTypeDescription
labelstringthe incoming label

Returns

Return type: string

loadCore

Signature

protected loadCore(storage: IChannelStorageService): Promise<void>;

Parameters

ParameterTypeDescription
storageIChannelStorageService

Returns

Return type: Promise<void>

onDisconnect

Signature

protected onDisconnect(): void;

processCore

Signature

protected processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;

Parameters

ParameterTypeDescription
messageISequencedDocumentMessage
localboolean
localOpMetadataunknown

reSubmitCore

Signature

protected reSubmitCore(content: any, localOpMetadata: unknown): void;

Parameters

ParameterTypeDescription
contentany
localOpMetadataunknown

summarizeCore

Signature

protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;

Parameters

ParameterTypeDescription
serializerIFluidSerializer

Returns

Return type: ISummaryTreeWithStats

waitIntervalCollection

This API is deprecated and will be removed in a future release.
  • IntervalCollections are created on a first-write wins basis, and concurrent creates are supported. Use getIntervalCollection instead.

Signature

waitIntervalCollection(label: string): Promise<IntervalCollection<Interval>>;

Parameters

ParameterTypeDescription
labelstring

Returns

Return type: Promise<IntervalCollection<Interval>>