M - the type of the message to processpublic interface BusCommand<M extends BasicMessage>
Note on thread safety: implementations of this interface must not store any state outside of the
execute(BasicMessageWithExtraData, BusCommandContext) method so that the instances can be safely shared
between multiple threads.
| Modifier and Type | Method and Description |
|---|---|
void |
execute(BasicMessageWithExtraData<M> message,
BusCommandContext context)
Performs the command for the given
message. |
void execute(BasicMessageWithExtraData<M> message, BusCommandContext context) throws Exception
message.message - the request to executecontext - some context data that can be useful for the command to be able to execute the requestException - if failed to execute the operationCopyright © 2014–2017 Red Hat, Inc.. All rights reserved.