public class CassandraReadSideProcessor.EventHandlersBuilder extends Object
Constructor and Description |
---|
EventHandlersBuilder() |
Modifier and Type | Method and Description |
---|---|
CassandraReadSideProcessor.EventHandlers |
build()
When all event handlers have been defined the immutable
ReadSideHandler is created with this method. |
<E extends Event> |
setEventHandler(Class<E> eventClass,
BiFunction<E,UUID,CompletionStage<List<com.datastax.driver.core.BoundStatement>>> handler)
Define the event handler that will be used for events of a given class.
|
public <E extends Event> void setEventHandler(Class<E> eventClass, BiFunction<E,UUID,CompletionStage<List<com.datastax.driver.core.BoundStatement>>> handler)
public CassandraReadSideProcessor.EventHandlers build()
ReadSideHandler
is created with this method.