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 SummaryFields inherited from interface org.springframework.messaging.MessageChannelINDEFINITE_TIMEOUT
- 
Method SummaryMethods inherited from interface org.springframework.messaging.MessageChannelsend, send
- 
Method Details- 
receiveReceive a message from this channel, blocking indefinitely if necessary.- Returns:
- the next available Messageornullif interrupted
 
- 
receiveReceive a message from this channel, blocking until either a message is available or the specified timeout period elapses.- Parameters:
- timeout- the timeout in milliseconds or- MessageChannel.INDEFINITE_TIMEOUT.
- Returns:
- the next available Messageornullif the specified timeout period elapses or the message reception is interrupted
 
 
-