I - Type of the command identity.E - Type of the error descriptor.public interface CommandProcessor<I,E>
| Modifier and Type | Method and Description |
|---|---|
void |
endSession()
Terminates the session.
|
void |
executeAsynchronously(List<Command<I>> commands,
CommandExecutionListener<I,E> commandExecutionListener)
Asynchronously executes commands.
|
Result<Void,E,Void> |
executeSynchronously(List<Command<I>> commands,
Long timeout)
Synchronously executes commands.
|
Result<Void,E,Void> executeSynchronously(List<Command<I>> commands, Long timeout)
commands - Commands to execute.timeout - Timeout, null to wait until the response is received.void executeAsynchronously(List<Command<I>> commands, CommandExecutionListener<I,E> commandExecutionListener)
commands - Commands to execute.commandExecutionListener - Entity to notify execution state.void endSession()
Copyright © 2014. All Rights Reserved.