@ApplicationScoped public class BusCommands extends Object
BusCommands that can operate on messages coming over a bus queue or topic.| Constructor and Description |
|---|
BusCommands() |
| Modifier and Type | Method and Description |
|---|---|
<REQ extends org.hawkular.bus.common.BasicMessage,RESP extends org.hawkular.bus.common.BasicMessage> |
getCommand(Class<REQ> requestClass)
Returns a
BusCommand that should handle the given requestClass. |
public <REQ extends org.hawkular.bus.common.BasicMessage,RESP extends org.hawkular.bus.common.BasicMessage> BusCommand<REQ> getCommand(Class<REQ> requestClass) throws NoCommandForMessageException
BusCommand that should handle the given requestClass.requestClass - the type of a request for which a processing BusCommand should be found by this
methodBusCommand, never nullNoCommandForMessageException - if no BusCommand was foundCopyright © 2015–2016 Red Hat. All rights reserved.