| Package | Description |
|---|---|
| org.hawkular.bus.common | |
| org.hawkular.bus.common.consumer |
| Modifier and Type | Method and Description |
|---|---|
static <T extends BasicMessage> |
AbstractMessage.fromJSON(InputStream in,
Class<T> clazz)
Convenience static method that reads a JSON string from the given stream and converts the JSON
string to a particular message object.
|
| Modifier and Type | Method and Description |
|---|---|
<R extends BasicMessage> |
SimpleMessageProcessor.sendRPC(BasicMessage basicMessage,
Class<R> expectedResponseMessageClass) |
<R extends BasicMessage> |
SimpleMessageProcessor.sendRPC(BasicMessage basicMessage,
Class<R> expectedResponseMessageClass,
Map<String,String> headers) |
<R extends BasicMessage> |
MessageProcessor.sendRPC(ProducerConnectionContext context,
BasicMessage basicMessage,
Class<R> expectedResponseMessageClass)
Same as
MessageProcessor.sendRPC(ProducerConnectionContext, BasicMessage, Class, Map) with null headers. |
<R extends BasicMessage> |
MessageProcessor.sendRPC(ProducerConnectionContext context,
BasicMessage basicMessage,
Class<R> expectedResponseMessageClass,
Map<String,String> headers)
Send the given message to its destinations across the message bus and returns a Future to allow the caller to
retrieve the response.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends BasicMessage> |
MessageProcessor.send(ProducerConnectionContext context,
BasicMessageWithExtraData<T> message,
Map<String,String> headers)
If the given
message.getBinaryData() is not null delegates to
MessageProcessor.sendWithBinaryData(ProducerConnectionContext, BasicMessage, InputStream, Map) otherwise delegates to
MessageProcessor.send(ProducerConnectionContext, BasicMessageWithExtraData, Map) |
| Modifier and Type | Method and Description |
|---|---|
BasicMessageWithExtraData<T> |
FutureBasicMessageListener.get() |
BasicMessageWithExtraData<T> |
FutureBasicMessageListener.get(long timeout,
TimeUnit unit) |
protected BasicMessageWithExtraData<T> |
AbstractBasicMessageListener.parseMessage(javax.jms.Message message)
Given the BasicMessage received over the wire, convert it to our T representation of the message and keep any
extra data that came with it.
|
| Modifier and Type | Method and Description |
|---|---|
protected U |
RPCBasicMessageListener.onBasicMessage(BasicMessageWithExtraData<T> msgWithExtraData)
Subclasses implement this method to process the received message.
|
protected void |
BasicMessageListener.onBasicMessage(BasicMessageWithExtraData<T> msgWithExtraData)
Subclasses implement this method to process the received message.
|
protected void |
FutureBasicMessageListener.onBasicMessage(BasicMessageWithExtraData<T> msgWithData) |
Copyright © 2015 Red Hat, Inc.. All rights reserved.