E
- all events generated for this aggregateA
- the aggregate typepublic final class AggregatorBuilder<E,A> extends Object
Aggregator
that can handle multiple event types by adding
one or more single event aggregators.Modifier and Type | Method and Description |
---|---|
Aggregator<E,A> |
build() |
static <E,A> AggregatorBuilder<E,A> |
newBuilder() |
<SE extends E> |
onEvent(Class<SE> specificEventClass,
Aggregator<SE,A> ch) |
public static <E,A> AggregatorBuilder<E,A> newBuilder()
public <SE extends E> AggregatorBuilder<E,A> onEvent(Class<SE> specificEventClass, Aggregator<SE,A> ch)
public Aggregator<E,A> build()
Copyright © 2019. All rights reserved.