public abstract class CassandraReadSideProcessor<Event extends AggregateEvent<Event>> extends Object
PersistentEntity
 instances and update one or more tables in Cassandra that are optimized for queries.
 The events belong to a AggregateEventTag, e.g. all
 persistent events of all Order entities.| Modifier and Type | Class and Description | 
|---|---|
| class  | CassandraReadSideProcessor.EventHandlersDeprecated.  | 
| class  | CassandraReadSideProcessor.EventHandlers$Deprecated.  | 
| class  | CassandraReadSideProcessor.EventHandlersBuilderDeprecated.  Mutable builder for defining event handlers. | 
| Constructor and Description | 
|---|
| CassandraReadSideProcessor()Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract AggregateEventTag<Event> | aggregateTag()Deprecated.  The processed events belong to a  AggregateEventTagthat is specified by this method, e.g. | 
| CompletionStage<List<com.datastax.driver.core.BoundStatement>> | completedStatement(com.datastax.driver.core.BoundStatement stmt)Deprecated.  Convenience method to create an already completed  CompletionStagewith oneBoundStatement. | 
| CompletionStage<List<com.datastax.driver.core.BoundStatement>> | completedStatements(List<com.datastax.driver.core.BoundStatement> stmts)Deprecated.  Convenience method to create an already completed  CompletionStagewith severalBoundStatement. | 
| abstract CassandraReadSideProcessor.EventHandlers | defineEventHandlers(CassandraReadSideProcessor.EventHandlersBuilder builder)Deprecated.  Define the event handlers that are to be used. | 
| CompletionStage<List<com.datastax.driver.core.BoundStatement>> | emptyStatements()Deprecated.  Convenience method to create an already completed  CompletionStagewith zeroBoundStatement. | 
| CompletionStage<Optional<UUID>> | noOffset()Deprecated.  | 
| abstract CompletionStage<Optional<UUID>> | prepare(CassandraSession session)Deprecated.  First you must tell where in the event stream the processing should start,
 i.e. | 
public abstract AggregateEventTag<Event> aggregateTag()
AggregateEventTag
 that is specified by this method, e.g. all persistent events of all Order entities.public final CompletionStage<List<com.datastax.driver.core.BoundStatement>> completedStatement(com.datastax.driver.core.BoundStatement stmt)
CompletionStage
 with one BoundStatement.public final CompletionStage<List<com.datastax.driver.core.BoundStatement>> completedStatements(List<com.datastax.driver.core.BoundStatement> stmts)
CompletionStage
 with several BoundStatement.public abstract CassandraReadSideProcessor.EventHandlers defineEventHandlers(CassandraReadSideProcessor.EventHandlersBuilder builder)
builder to define the event handlers. One handler for each event class.
 A handler is a BiFunction that takes the event and the offset as
 parameters and returns zero or more bound statements that will be executed
 before processing next event.public final CompletionStage<List<com.datastax.driver.core.BoundStatement>> emptyStatements()
CompletionStage
 with zero BoundStatement.public final CompletionStage<Optional<UUID>> noOffset()
public abstract CompletionStage<Optional<UUID>> prepare(CassandraSession session)
select statement here. Use the CassandraSession
 to get the stored offset.
 
 Other things that is typically performed in this method is to create
 prepared statements that are later used when processing the events.
 Use CassandraSession.prepare(java.lang.String) to create the prepared statements.
 
 Return noOffset() if you want to processes all events, e.g. when
 starting the first time or if the number of events are known to be small
 enough to processes all events.