|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.integration.gateway.RequestReplyTemplate.ReplyHandlingChannelAdapter
private static class RequestReplyTemplate.ReplyHandlingChannelAdapter
Field Summary | |
---|---|
private Message<?> |
originalMessage
|
private ReplyHandler |
replyHandler
|
Constructor Summary | |
---|---|
RequestReplyTemplate.ReplyHandlingChannelAdapter(Message<?> originalMessage,
ReplyHandler replyHandler)
|
Method Summary | |
---|---|
java.util.List<Message<?>> |
clear()
Remove all Messages from this channel. |
java.lang.String |
getName()
Return the name of this channel. |
java.util.List<Message<?>> |
purge(MessageSelector selector)
Remove any Messages that are not accepted by the provided selector. |
Message |
receive()
Receive a message, blocking indefinitely if necessary. |
Message |
receive(long timeout)
Receive a message, blocking until either a message is available or the specified timeout period elapses. |
boolean |
send(Message<?> message)
Send a message, blocking indefinitely if necessary. |
boolean |
send(Message<?> message,
long timeout)
Send a message, blocking until either the message is accepted or the specified timeout period elapses. |
void |
setName(java.lang.String name)
Set the name of this channel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Message<?> originalMessage
private final ReplyHandler replyHandler
Constructor Detail |
---|
RequestReplyTemplate.ReplyHandlingChannelAdapter(Message<?> originalMessage, ReplyHandler replyHandler)
Method Detail |
---|
public java.util.List<Message<?>> clear()
MessageChannel
Messages
from this channel.
clear
in interface MessageChannel
public java.lang.String getName()
MessageChannel
getName
in interface MessageChannel
public java.util.List<Message<?>> purge(MessageSelector selector)
MessageChannel
Messages
that are not accepted by the provided selector.
purge
in interface MessageChannel
public void setName(java.lang.String name)
MessageChannel
setName
in interface MessageChannel
public Message receive()
BlockingSource
receive
in interface BlockingSource
receive
in interface MessageSource
Message
or null
if
interruptedpublic Message receive(long timeout)
BlockingSource
receive
in interface BlockingSource
timeout
- the timeout in milliseconds
Message
or null
if the
specified timeout period elapses or the message reception is interruptedpublic boolean send(Message<?> message)
BlockingTarget
send
in interface BlockingTarget
send
in interface MessageTarget
message
- the Message
to send
true
if the message is sent successfully,
false if interrupted
public boolean send(Message<?> message, long timeout)
BlockingTarget
send
in interface BlockingTarget
message
- the Message
to sendtimeout
- the timeout in milliseconds
true
if the message is sent successfully,
false if the specified timeout period elapses or
the send is interrupted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |