Skip to main content

StateFilesSavedEvent

This event is emitted after state files are written, with the bytes written and their MD5. A file moved from a path, and a deleted file, have neither.

@group

Events/State

Hierarchy

  • StateEvent<{ stateFiles: { data: Buffer | undefined; md5: string | undefined; stateFileName: string }[] }>
    • StateFilesSavedEvent

Index

Constructors

Properties

Constructors

constructor

  • StateFilesSavedEvent(name?: string, payload?: { stateFiles: { data: Buffer<ArrayBufferLike> | undefined; md5: string | undefined; stateFileName: string }[] }): StateFilesSavedEvent
  • Parameters

    • optionalname: string

      The subject of the event, when the event type alone does not identify it.

    • optionalpayload: { stateFiles: { data: Buffer<ArrayBufferLike> | undefined; md5: string | undefined; stateFileName: string }[] }

      The event's data.

      • stateFiles: { data: Buffer<ArrayBufferLike> | undefined; md5: string | undefined; stateFileName: string }[]

    Returns StateFilesSavedEvent

Properties

readonlyinheritedheader

header: { sequence: number; timestamp: number }

When the event was created. sequence counts every event this process created, so it orders two events created in the same millisecond, and events a late listener receives replayed.


Type declaration

  • sequence: number
  • timestamp: number

readonlyinheritedname

name: string

The subject of the event, when the event type alone does not identify it - e.g. the class name on a registration event. Empty otherwise.

readonlyinheritedpayload

payload: { stateFiles: { data: Buffer<ArrayBufferLike> | undefined; md5: string | undefined; stateFileName: string }[] }

The event's data. Its shape is fixed by the event type.


Type declaration

  • stateFiles: { data: Buffer<ArrayBufferLike> | undefined; md5: string | undefined; stateFileName: string }[]
Page Options