Skip to main content

Class: EventStore

Constructors

new EventStore()

new EventStore(): EventStore

Returns

EventStore

Properties

mode

mode: EventStoreMode = EventStoreMode.Disabled

Defined in

EventStore.ts:28


replayThoughSequence

replayThoughSequence: number = Number.MAX_VALUE

Defined in

EventStore.ts:25


serializedEventsBeforeReplay

serializedEventsBeforeReplay: string = ""

Defined in

EventStore.ts:26

Accessors

eventQueueLength

Get Signature

get eventQueueLength(): number

Returns

number

Defined in

EventStore.ts:212

Methods

addEvent()

addEvent(event): void

Parameters

event: M2Event<M2EventTarget>

Returns

void

Defined in

EventStore.ts:111


addEvents()

addEvents(events): void

Parameters

events: M2Event<M2EventTarget>[]

Returns

void

Defined in

EventStore.ts:132


clearEvents()

clearEvents(): void

Returns

void

Defined in

EventStore.ts:138


dequeueEvents()

dequeueEvents(timestamp): M2Event<M2EventTarget>[]

Parameters

timestamp: number

Returns

M2Event<M2EventTarget>[]

Defined in

EventStore.ts:186


getEvents()

getEvents(): M2Event<M2EventTarget>[]

Returns

M2Event<M2EventTarget>[]

Defined in

EventStore.ts:181


record()

record(): void

Returns

void

Defined in

EventStore.ts:142


replay()

replay(events?): void

Parameters

events?: M2Event<M2EventTarget>[]

Returns

void

Defined in

EventStore.ts:146