Class JdbcEventStorageEngine

All Implemented Interfaces:
EventStorageEngine

public class JdbcEventStorageEngine extends BatchingEventStorageEngine
An EventStorageEngine implementation that uses JDBC to store and fetch events.

By default, it stores the payload of events as a serialized blob of bytes. It uses other columns to store meta-data that allows quick finding of DomainEvents for a specific aggregate in the correct order.

Before using this store make sure the database contains a table named EventSchema.domainEventTable() and EventSchema.snapshotTable() in which to store events and snapshots in respectively. For convenience, these tables can be constructed through the createSchema(EventTableFactory) operation.

Since:
3.0
Author:
Rene de Waele