T
- The type of command this handler can handlepublic interface CommandHandler<T>
CommandBus
in order to receive command of the specified type T
.Modifier and Type | Method and Description |
---|---|
Object |
handle(CommandMessage<T> commandMessage,
UnitOfWork unitOfWork)
Handles the given
command . |
Object handle(CommandMessage<T> commandMessage, UnitOfWork unitOfWork) throws Throwable
command
.commandMessage
- The message carrying the command to process.unitOfWork
- The UnitOfWork the command is processed inThrowable
- any exception that occurs during command handlingCopyright © 2010-2014. All Rights Reserved.