Overview
Handles grouped observer subscriptions for each watched state key and index-watch-rule variant.
API Reference
Maintains grouped observer subscriptions for watched indexes per context.
import { StateChangeSubscriptionManager } from '@rs-x/state-manager';import { StateChangeSubscriptionManager } from '@rs-x/state-manager';
const instance = new StateChangeSubscriptionManager(...args);7 members in this class.
constructor(
private readonly _objectObserverManager: IObjectPropertyObserverProxyPairManager,
private readonly _errorLog: IErrorLog,
private readonly _guidFactory: IGuidFactory
)Parameters
public getId(context: unknown): unknownParameters
Returns
unknown
public instanceGroupInfoEntriesForContext(
context: unknown
): IterableIterator<IInstanceGroupInfo<string, IObserver>>Parameters
Returns
IterableIterator<IInstanceGroupInfo<string, IObserver>>
public isRegistered(
context: unknown,
key: unknown
): booleanParameters
Returns
boolean
protected createId(context: unknown): unknownParameters
Returns
unknown
protected override createInstance(
context: unknown,
id: unknown
): IStateChangeSubscriptionsForContextManagerParameters
protected override releaseInstance(
instance: IStateChangeSubscriptionsForContextManager,
id: unknown
): voidParameters
Returns
void