S - The concrete type of the state object.C - The concrete command type that this handler will handle.E - The concrete event type that this handler will produce.public interface AsyncMultiCommandHandler<S extends State,C extends Command,E extends Event> extends MultiCommandHandler<S,C,E>
| Modifier and Type | Method and Description |
|---|---|
Callable<Collection<E>> |
handle(S state,
C command)
Handle a command asynchronously and produce multiple events
|
Callable<Collection<E>> handle(S state, C command)
state - The current state object.command - The command object to handle.Copyright © 2016 Cooking Fox. All rights reserved.