org.springframework.integration.gateway
Class MessagingGatewaySupport
java.lang.Object
org.springframework.integration.gateway.MessagingGatewaySupport
- Direct Known Subclasses:
- SimpleMessagingGateway
public abstract class MessagingGatewaySupport
- extends java.lang.Object
A convenient base class providing access to a MessageExchangeTemplate
and exposing setter methods for
configuring request and reply MessageChannels
. May be used as a base class for framework
components so that the details of messaging are well-encapsulated and hidden from application code. For example,
see SimpleMessagingGateway
.
- Author:
- Mark Fisher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
messageExchangeTemplate
private final MessageExchangeTemplate messageExchangeTemplate
MessagingGatewaySupport
public MessagingGatewaySupport()
setRequestTimeout
public void setRequestTimeout(long requestTimeout)
- Set the timeout value for sending request messages. If not
explicitly configured, the default is an indefinite timeout.
- Parameters:
requestTimeout
- the timeout value in milliseconds
setReplyTimeout
public void setReplyTimeout(long replyTimeout)
- Set the timeout value for receiving reply messages. If not
explicitly configured, the default is an indefinite timeout.
- Parameters:
replyTimeout
- the timeout value in milliseconds
getMessageExchangeTemplate
protected final MessageExchangeTemplate getMessageExchangeTemplate()
- Retrieve the
MessageExchangeTemplate
for performing
send and receive operations across channels.