spring-framework / org.springframework.messaging / PollableChannel

PollableChannel

interface PollableChannel : MessageChannel

A MessageChannel from which messages may be actively received through polling.

Author
Mark Fisher

Since
4.0

Functions

receive

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.