Package io.simplesource.dsl
Class AggregatorBuilder<E,A>
- java.lang.Object
-
- io.simplesource.dsl.AggregatorBuilder<E,A>
-
- Type Parameters:
E- all events generated for this aggregateA- the aggregate type
public final class AggregatorBuilder<E,A> extends Object
A builder for creating anAggregatorthat can handle multiple event types by adding one or more single event aggregators.
-
-
Method Summary
Modifier and Type Method Description Aggregator<E,A>build()static <E,A>
AggregatorBuilder<E,A>newBuilder()<SE extends E>
AggregatorBuilder<E,A>onEvent(Class<SE> specificEventClass, Aggregator<SE,A> ch)
-
-
-
Method Detail
-
newBuilder
public static <E,A> AggregatorBuilder<E,A> newBuilder()
-
onEvent
public <SE extends E> AggregatorBuilder<E,A> onEvent(Class<SE> specificEventClass, Aggregator<SE,A> ch)
-
build
public Aggregator<E,A> build()
-
-