StateFilesSavedEvent
Hierarchy
- StateEvent<{ stateFiles: { data: Buffer | undefined; md5: string | undefined; stateFileName: string }[] }>
- StateFilesSavedEvent
Index
Constructors
Properties
Constructors
constructor
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
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
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
The event's data. Its shape is fixed by the event type.
Type declaration
stateFiles: { data: Buffer<ArrayBufferLike> | undefined; md5: string | undefined; stateFileName: string }[]
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.
Events/State