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
EventHandlers is created with this method. |
<E extends Event> |
setEventHandler(Class<E> eventClass,
java.util.function.BiFunction<E,java.util.UUID,java.util.concurrent.CompletionStage<java.util.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, java.util.function.BiFunction<E,java.util.UUID,java.util.concurrent.CompletionStage<java.util.List<com.datastax.driver.core.BoundStatement>>> handler)
public CassandraReadSideProcessor.EventHandlers build()
EventHandlers
is created with this method.