public class EchoCommand extends Object implements Command<EchoRequest,EchoResponse>
| Modifier and Type | Field and Description |
|---|---|
static Class<EchoRequest> |
REQUEST_CLASS |
| Constructor and Description |
|---|
EchoCommand() |
| Modifier and Type | Method and Description |
|---|---|
org.hawkular.bus.common.BasicMessageWithExtraData<EchoResponse> |
execute(EchoRequest echoRequest,
org.hawkular.bus.common.BinaryData binaryData,
CommandContext context)
Performs the command for the feed.
|
public static final Class<EchoRequest> REQUEST_CLASS
public org.hawkular.bus.common.BasicMessageWithExtraData<EchoResponse> execute(EchoRequest echoRequest, org.hawkular.bus.common.BinaryData binaryData, CommandContext context)
Commandexecute in interface Command<EchoRequest,EchoResponse>echoRequest - the request that describes what needs to be executedbinaryData - if not null, this contains extra binary data that came across with the command requestcontext - some context data that can be useful for the command to be able to execute the requestCopyright © 2015 Red Hat. All rights reserved.