Skip to main content
Version: v1

ISharedObject Interface

Base interface for shared objects from which other interfaces derive. Implemented by SharedObject

Signature

export interface ISharedObject<TEvent extends ISharedObjectEvents = ISharedObjectEvents> extends IChannel, IEventProvider<TEvent>

Extends: IChannel, IEventProvider

Type Parameters

ParameterConstraintDefaultDescription
TEventISharedObjectEventsISharedObjectEvents

Methods

MethodReturn TypeDescription
bindToContext()voidBinds the given shared object to its containing data store runtime, causing it to attach once the runtime attaches.
getGCData(fullGC)IGarbageCollectionDataReturns the GC data for this shared object. It contains a list of GC nodes that contains references to other GC nodes.

Method Details

bindToContext

Binds the given shared object to its containing data store runtime, causing it to attach once the runtime attaches.

Signature

bindToContext(): void;

getGCData

Returns the GC data for this shared object. It contains a list of GC nodes that contains references to other GC nodes.

Signature

getGCData(fullGC?: boolean): IGarbageCollectionData;

Parameters

ParameterModifiersTypeDescription
fullGCoptionalbooleantrue to bypass optimizations and force full generation of GC data.

Returns

Return type: IGarbageCollectionData