K
- the aggregate key typeC
- all commands for this aggregateE
- all events generated for this aggregateA
- the aggregate typepublic final class CommandHandlerBuilder<K,C,E,A> extends Object
CommandHandler
that can handle several different commands types by adding
one or more single command handlers.Modifier and Type | Method and Description |
---|---|
<SC extends C> |
build() |
static <K,C,E,A> CommandHandlerBuilder<K,C,E,A> |
newBuilder() |
<SC extends C> |
onCommand(Class<SC> specificCommandClass,
CommandHandler<K,SC,E,A> ch) |
public static <K,C,E,A> CommandHandlerBuilder<K,C,E,A> newBuilder()
public <SC extends C> CommandHandlerBuilder<K,C,E,A> onCommand(Class<SC> specificCommandClass, CommandHandler<K,SC,E,A> ch)
public <SC extends C> CommandHandler<K,SC,E,A> build()
Copyright © 2019. All rights reserved.