Low-level adapter interface for event log implementations.
Adapters handle the actual communication with the underlying event store (in-memory, Kafka, etc.). Use connectors to create adapter instances.
append<T>(): Promise<string>
Append an event to a topic.
consume<T>(topic: string,consumerGroup: string,onBatch: (batch: EventBatch<T, Cursor>) => Promisable<void>,onError: (error: EventLogConsumeFailed) => Promisable<void>,options?: ConsumeOptions<Cursor>,): { close: () => Promise<void>; }
Consume events from a topic.
Get the last committed cursor for a consumer group.
commitCursor(): Promise<void>
Commit a cursor for a consumer group.
close(): Promise<void>
Close the adapter and release resources.