Class AsyncMessagingTemplate
java.lang.Object
org.springframework.messaging.core.AbstractMessageSendingTemplate<MessageChannel>
org.springframework.messaging.core.AbstractMessageReceivingTemplate<MessageChannel>
org.springframework.messaging.core.AbstractMessagingTemplate<MessageChannel>
org.springframework.messaging.core.AbstractDestinationResolvingMessagingTemplate<MessageChannel>
org.springframework.messaging.core.GenericMessagingTemplate
org.springframework.integration.core.MessagingTemplate
org.springframework.integration.core.AsyncMessagingTemplate
- All Implemented Interfaces:
Aware,BeanFactoryAware,AsyncMessagingOperations,DestinationResolvingMessageReceivingOperations<MessageChannel>,DestinationResolvingMessageRequestReplyOperations<MessageChannel>,DestinationResolvingMessageSendingOperations<MessageChannel>,MessageReceivingOperations<MessageChannel>,MessageRequestReplyOperations<MessageChannel>,MessageSendingOperations<MessageChannel>
- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell
-
Field Summary
Fields inherited from class org.springframework.messaging.core.GenericMessagingTemplate
DEFAULT_RECEIVE_TIMEOUT_HEADER, DEFAULT_SEND_TIMEOUT_HEADERFields inherited from class org.springframework.messaging.core.AbstractMessageSendingTemplate
CONVERSION_HINT_HEADER, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFuture<?> asyncConvertAndSend(Object object) Future<?> asyncConvertAndSend(String channelName, Object object) Future<?> asyncConvertAndSend(MessageChannel channel, Object object) <R> Future<R> asyncConvertSendAndReceive(Object request) <R> Future<R> asyncConvertSendAndReceive(Object request, MessagePostProcessor requestPostProcessor) <R> Future<R> asyncConvertSendAndReceive(String channelName, Object request) <R> Future<R> asyncConvertSendAndReceive(String channelName, Object request, MessagePostProcessor requestPostProcessor) <R> Future<R> asyncConvertSendAndReceive(MessageChannel channel, Object request) <R> Future<R> asyncConvertSendAndReceive(MessageChannel channel, Object request, MessagePostProcessor requestPostProcessor) asyncReceive(String channelName) asyncReceive(PollableChannel channel) <R> Future<R> <R> Future<R> asyncReceiveAndConvert(String channelName) <R> Future<R> asyncReceiveAndConvert(PollableChannel channel) Future<?> Future<?> Future<?> asyncSend(MessageChannel channel, Message<?> message) asyncSendAndReceive(String channelName, Message<?> requestMessage) asyncSendAndReceive(Message<?> requestMessage) asyncSendAndReceive(MessageChannel channel, Message<?> requestMessage) voidsetExecutor(Executor executor) Methods inherited from class org.springframework.integration.core.MessagingTemplate
receive, receiveAndConvert, sendAndReceive, setBeanFactory, setDefaultChannel, setThrowExceptionOnLateReplyMethods inherited from class org.springframework.messaging.core.GenericMessagingTemplate
doReceive, doReceive, doSend, doSend, doSendAndReceive, getReceiveTimeout, getReceiveTimeoutHeader, getSendTimeout, getSendTimeoutHeader, setReceiveTimeout, setReceiveTimeoutHeader, setSendTimeout, setSendTimeoutHeaderMethods inherited from class org.springframework.messaging.core.AbstractDestinationResolvingMessagingTemplate
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, getDestinationResolver, receive, receiveAndConvert, resolveDestination, send, sendAndReceive, setDestinationResolverMethods inherited from class org.springframework.messaging.core.AbstractMessagingTemplate
convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, sendAndReceiveMethods inherited from class org.springframework.messaging.core.AbstractMessageReceivingTemplate
doConvert, receive, receive, receiveAndConvert, receiveAndConvertMethods inherited from class org.springframework.messaging.core.AbstractMessageSendingTemplate
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, doConvert, getDefaultDestination, getMessageConverter, getRequiredDefaultDestination, processHeadersToSend, send, send, setDefaultDestination, setMessageConverterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.messaging.core.MessageReceivingOperations
receive, receive, receiveAndConvert, receiveAndConvertMethods inherited from interface org.springframework.messaging.core.MessageRequestReplyOperations
convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, sendAndReceiveMethods inherited from interface org.springframework.messaging.core.MessageSendingOperations
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, send, send
-
Constructor Details
-
AsyncMessagingTemplate
public AsyncMessagingTemplate()
-
-
Method Details
-
setExecutor
-
asyncSend
- Specified by:
asyncSendin interfaceAsyncMessagingOperations
-
asyncSend
- Specified by:
asyncSendin interfaceAsyncMessagingOperations
-
asyncSend
- Specified by:
asyncSendin interfaceAsyncMessagingOperations
-
asyncConvertAndSend
- Specified by:
asyncConvertAndSendin interfaceAsyncMessagingOperations
-
asyncConvertAndSend
- Specified by:
asyncConvertAndSendin interfaceAsyncMessagingOperations
-
asyncConvertAndSend
- Specified by:
asyncConvertAndSendin interfaceAsyncMessagingOperations
-
asyncReceive
- Specified by:
asyncReceivein interfaceAsyncMessagingOperations
-
asyncReceive
- Specified by:
asyncReceivein interfaceAsyncMessagingOperations
-
asyncReceive
- Specified by:
asyncReceivein interfaceAsyncMessagingOperations
-
asyncReceiveAndConvert
- Specified by:
asyncReceiveAndConvertin interfaceAsyncMessagingOperations
-
asyncReceiveAndConvert
- Specified by:
asyncReceiveAndConvertin interfaceAsyncMessagingOperations
-
asyncReceiveAndConvert
- Specified by:
asyncReceiveAndConvertin interfaceAsyncMessagingOperations
-
asyncSendAndReceive
- Specified by:
asyncSendAndReceivein interfaceAsyncMessagingOperations
-
asyncSendAndReceive
- Specified by:
asyncSendAndReceivein interfaceAsyncMessagingOperations
-
asyncSendAndReceive
- Specified by:
asyncSendAndReceivein interfaceAsyncMessagingOperations
-
asyncConvertSendAndReceive
- Specified by:
asyncConvertSendAndReceivein interfaceAsyncMessagingOperations
-
asyncConvertSendAndReceive
- Specified by:
asyncConvertSendAndReceivein interfaceAsyncMessagingOperations
-
asyncConvertSendAndReceive
- Specified by:
asyncConvertSendAndReceivein interfaceAsyncMessagingOperations
-
asyncConvertSendAndReceive
public <R> Future<R> asyncConvertSendAndReceive(Object request, MessagePostProcessor requestPostProcessor) - Specified by:
asyncConvertSendAndReceivein interfaceAsyncMessagingOperations
-
asyncConvertSendAndReceive
public <R> Future<R> asyncConvertSendAndReceive(MessageChannel channel, Object request, MessagePostProcessor requestPostProcessor) - Specified by:
asyncConvertSendAndReceivein interfaceAsyncMessagingOperations
-
asyncConvertSendAndReceive
public <R> Future<R> asyncConvertSendAndReceive(String channelName, Object request, MessagePostProcessor requestPostProcessor) - Specified by:
asyncConvertSendAndReceivein interfaceAsyncMessagingOperations
-