Package org.springframework.messaging
Interface PollableChannel
- All Superinterfaces:
MessageChannel
A
MessageChannel from which messages may be actively received through polling.- Since:
- 4.0
- Author:
- Mark Fisher
-
Field Summary
Fields inherited from interface org.springframework.messaging.MessageChannel
INDEFINITE_TIMEOUT -
Method Summary
Methods inherited from interface org.springframework.messaging.MessageChannel
send, send
-
Method Details
-
receive
Receive a message from this channel, blocking indefinitely if necessary.- Returns:
- the next available
Messageornullif interrupted
-
receive
Receive a message from this channel, blocking until either a message is available or the specified timeout period elapses.- Parameters:
timeout- the timeout in milliseconds orMessageChannel.INDEFINITE_TIMEOUT.- Returns:
- the next available
Messageornullif the specified timeout period elapses or the message reception is interrupted
-