Structsยง
- Event
Handler Options - EventHandlerOptions is the options for the event handler.
- Event
Processor ๐ - Event
Recorder Impl - Implementation of EventRecorder that records the events and processes them in the background by the EventHandler.
- Event
Recorder Options - Configuration options for the event recorder.
Constantsยง
- DEFAULT_
BUFFER_ ๐SIZE - DEFAULT_
CHANNEL_ ๐SIZE - DEFAULT_
EVENTS_ TABLE_ NAME - The default table name for storing the events.
- DEFAULT_
EVENTS_ ๐TABLE_ TTL - The default TTL(90 days) for the events table.
- DEFAULT_
FLUSH_ INTERVAL_ SECONDS - The time interval for flushing batched events to the event handler.
- DEFAULT_
MAX_ ๐RETRY_ TIMES - EVENTS_
TABLE_ PAYLOAD_ COLUMN_ NAME - The column name for the event payload.
- EVENTS_
TABLE_ TIMESTAMP_ COLUMN_ NAME - The column name for the event timestamp.
- EVENTS_
TABLE_ TYPE_ COLUMN_ NAME - The column name for the event type.
Traitsยง
- Event
- Event trait defines the interface for events that can be recorded and persisted as the system table. By default, the event will be persisted as the system table with the following schema:
- Event
Handler - EventHandler trait defines the interface for how to handle the event.
- Event
Recorder - EventRecorder trait defines the interface for recording events.
- Eventable
- Eventable trait defines the interface for objects that can be converted to Event.
Functionsยง
- build_
row_ inserts_ request - Builds the row inserts request for the events that will be persisted to the events table. The
events
should have the same event type, or it will return an error. - group_
events_ by_ type - Groups events by its
event_type
. - validate_
events ๐
Type Aliasesยง
- Event
Recorder Ref - EventRecorderRef is the reference to the event recorder.