| Package | Description |
|---|---|
| org.hawkular.bus.common |
| Modifier and Type | Method and Description |
|---|---|
ProducerConnectionContext |
ConnectionContextFactory.createProducerConnectionContext(Endpoint endpoint)
Creates a new producer connection context, reusing any existing connection that might have already been created.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ConnectionContextFactory.createProducer(ProducerConnectionContext context)
Creates a message producer using the context's session and destination.
|
MessageId |
MessageProcessor.send(ProducerConnectionContext context,
BasicMessage basicMessage)
Same as
MessageProcessor.send(ProducerConnectionContext, BasicMessage, Map) with null headers. |
MessageId |
MessageProcessor.send(ProducerConnectionContext context,
BasicMessage basicMessage,
Map<String,String> headers)
Send the given message to its destinations across the message bus.
|
<T extends BasicMessage> |
MessageProcessor.sendAndListen(ProducerConnectionContext context,
BasicMessage basicMessage,
BasicMessageListener<T> responseListener)
Same as
MessageProcessor.sendAndListen(ProducerConnectionContext, BasicMessage, BasicMessageListener, Map) with
null headers. |
<T extends BasicMessage> |
MessageProcessor.sendAndListen(ProducerConnectionContext context,
BasicMessage basicMessage,
BasicMessageListener<T> responseListener,
Map<String,String> headers)
Send the given message to its destinations across the message bus and any response sent back will be passed to
the given listener.
|
<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.
|
| Constructor and Description |
|---|
SimpleMessageProcessor(ConsumerConnectionContext consumerCtx,
ProducerConnectionContext producerCtx) |
Copyright © 2015 Red Hat, Inc.. All rights reserved.