public class EventStoreBuilder
extends java.lang.Object
EventStore instances| Constructor and Description |
|---|
EventStoreBuilder() |
| Modifier and Type | Method and Description |
|---|---|
EventStore |
createEventStore()
Create a new
EventStore instance |
EventStoreBuilder |
setProvider(Provider provider)
Inform the
Provider used to handle the persistence of the events in the EventStore |
EventStoreBuilder |
setPublisher(Publisher publisher)
Inform a
Publisher to be used to publish notifications about the modifications in a event stream. |
public EventStoreBuilder setProvider(Provider provider)
Provider used to handle the persistence of the events in the EventStoreprovider - Handle the event persistencepublic EventStoreBuilder setPublisher(Publisher publisher)
Publisher to be used to publish notifications about the modifications in a event stream.
If a Publisher is configured, a Message will be sent to all
Subscribers every time an Event is added to the
EventStreampublisher - Handle the Message notificationspublic EventStore createEventStore()
EventStore instanceEventStore instance