interface PollableChannel : MessageChannel
A MessageChannel from which messages may be actively received through polling.
Author
Mark Fisher
Since
4.0
abstract fun receive(): Message<*>
Receive a message from this channel, blocking indefinitely if necessary. abstract fun receive(timeout: Long): Message<*>
Receive a message from this channel, blocking until either a message is available or the specified timeout period elapses. |