public interface AsyncAmqpTemplate
| Modifier and Type | Method and Description |
|---|---|
<C> ListenableFuture<C> |
convertSendAndReceive(Object object)
Convert the object to a message and send it to the default exchange with the
default routing key.
|
<C> ListenableFuture<C> |
convertSendAndReceive(Object object,
MessagePostProcessor messagePostProcessor)
Convert the object to a message and send it to the default exchange with the
default routing key after invoking the
MessagePostProcessor. |
<C> ListenableFuture<C> |
convertSendAndReceive(String routingKey,
Object object)
Convert the object to a message and send it to the default exchange with the
provided routing key.
|
<C> ListenableFuture<C> |
convertSendAndReceive(String routingKey,
Object object,
MessagePostProcessor messagePostProcessor)
Convert the object to a message and send it to the default exchange with the
provided routing key after invoking the
MessagePostProcessor. |
<C> ListenableFuture<C> |
convertSendAndReceive(String exchange,
String routingKey,
Object object)
Convert the object to a message and send it to the provided exchange and
routing key.
|
<C> ListenableFuture<C> |
convertSendAndReceive(String exchange,
String routingKey,
Object object,
MessagePostProcessor messagePostProcessor)
Convert the object to a message and send it to the provided exchange and
routing key after invoking the
MessagePostProcessor. |
<C> ListenableFuture<C> |
convertSendAndReceiveAsType(Object object,
MessagePostProcessor messagePostProcessor,
ParameterizedTypeReference<C> responseType)
Convert the object to a message and send it to the default exchange with the
default routing key after invoking the
MessagePostProcessor. |
<C> ListenableFuture<C> |
convertSendAndReceiveAsType(Object object,
ParameterizedTypeReference<C> responseType)
Convert the object to a message and send it to the default exchange with the
default routing key.
|
<C> ListenableFuture<C> |
convertSendAndReceiveAsType(String routingKey,
Object object,
MessagePostProcessor messagePostProcessor,
ParameterizedTypeReference<C> responseType)
Convert the object to a message and send it to the default exchange with the
provided routing key after invoking the
MessagePostProcessor. |
<C> ListenableFuture<C> |
convertSendAndReceiveAsType(String routingKey,
Object object,
ParameterizedTypeReference<C> responseType)
Convert the object to a message and send it to the default exchange with the
provided routing key.
|
<C> ListenableFuture<C> |
convertSendAndReceiveAsType(String exchange,
String routingKey,
Object object,
MessagePostProcessor messagePostProcessor,
ParameterizedTypeReference<C> responseType)
Convert the object to a message and send it to the provided exchange and
routing key after invoking the
MessagePostProcessor. |
<C> ListenableFuture<C> |
convertSendAndReceiveAsType(String exchange,
String routingKey,
Object object,
ParameterizedTypeReference<C> responseType)
Convert the object to a message and send it to the provided exchange and
routing key.
|
ListenableFuture<Message> |
sendAndReceive(Message message)
Send a message to the default exchange with the default routing key.
|
ListenableFuture<Message> |
sendAndReceive(String routingKey,
Message message)
Send a message to the default exchange with the supplied routing key.
|
ListenableFuture<Message> |
sendAndReceive(String exchange,
String routingKey,
Message message)
Send a message to the supplied exchange and routing key.
|
ListenableFuture<Message> sendAndReceive(Message message)
message - the message.ListenableFuture.ListenableFuture<Message> sendAndReceive(String routingKey, Message message)
routingKey - the routing key.message - the message.ListenableFuture.ListenableFuture<Message> sendAndReceive(String exchange, String routingKey, Message message)
exchange - the exchange.routingKey - the routing key.message - the message.ListenableFuture.<C> ListenableFuture<C> convertSendAndReceive(Object object)
C - the expected result type.object - the object to convert.ListenableFuture.<C> ListenableFuture<C> convertSendAndReceive(String routingKey, Object object)
C - the expected result type.routingKey - the routing key.object - the object to convert.ListenableFuture.<C> ListenableFuture<C> convertSendAndReceive(String exchange, String routingKey, Object object)
C - the expected result type.exchange - the exchange.routingKey - the routing key.object - the object to convert.ListenableFuture.<C> ListenableFuture<C> convertSendAndReceive(Object object, MessagePostProcessor messagePostProcessor)
MessagePostProcessor.
If the post processor adds a correlationId property, it must be unique.C - the expected result type.object - the object to convert.messagePostProcessor - the post processor.ListenableFuture.<C> ListenableFuture<C> convertSendAndReceive(String routingKey, Object object, MessagePostProcessor messagePostProcessor)
MessagePostProcessor.
If the post processor adds a correlationId property, it must be unique.C - the expected result type.routingKey - the routing key.object - the object to convert.messagePostProcessor - the post processor.ListenableFuture.<C> ListenableFuture<C> convertSendAndReceive(String exchange, String routingKey, Object object, MessagePostProcessor messagePostProcessor)
MessagePostProcessor.
If the post processor adds a correlationId property, it must be unique.C - the expected result type.exchange - the exchangeroutingKey - the routing key.object - the object to convert.messagePostProcessor - the post processor.ListenableFuture.<C> ListenableFuture<C> convertSendAndReceiveAsType(Object object, ParameterizedTypeReference<C> responseType)
C - the expected result type.object - the object to convert.responseType - the response type.ListenableFuture.<C> ListenableFuture<C> convertSendAndReceiveAsType(String routingKey, Object object, ParameterizedTypeReference<C> responseType)
C - the expected result type.routingKey - the routing key.object - the object to convert.responseType - the response type.ListenableFuture.<C> ListenableFuture<C> convertSendAndReceiveAsType(String exchange, String routingKey, Object object, ParameterizedTypeReference<C> responseType)
C - the expected result type.exchange - the exchange.routingKey - the routing key.object - the object to convert.responseType - the response type.ListenableFuture.<C> ListenableFuture<C> convertSendAndReceiveAsType(Object object, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<C> responseType)
MessagePostProcessor.
If the post processor adds a correlationId property, it must be unique.C - the expected result type.object - the object to convert.messagePostProcessor - the post processor.responseType - the response type.ListenableFuture.<C> ListenableFuture<C> convertSendAndReceiveAsType(String routingKey, Object object, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<C> responseType)
MessagePostProcessor.
If the post processor adds a correlationId property, it must be unique.C - the expected result type.routingKey - the routing key.object - the object to convert.messagePostProcessor - the post processor.responseType - the response type.ListenableFuture.<C> ListenableFuture<C> convertSendAndReceiveAsType(String exchange, String routingKey, Object object, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<C> responseType)
MessagePostProcessor.
If the post processor adds a correlationId property, it must be unique.C - the expected result type.exchange - the exchangeroutingKey - the routing key.object - the object to convert.messagePostProcessor - the post processor.responseType - the response type.ListenableFuture.