|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockingSource<T>
Extends PollableSource
and provides a timeout-aware receive method.
Method Summary | |
---|---|
Message<T> |
receive()
Receive a message, blocking indefinitely if necessary. |
Message<T> |
receive(long timeout)
Receive a message, blocking until either a message is available or the specified timeout period elapses. |
Method Detail |
---|
Message<T> receive()
receive
in interface Source<T>
Message
or null
if
interruptedMessage<T> receive(long timeout)
timeout
- the timeout in milliseconds
Message
or null
if the
specified timeout period elapses or the message reception is interrupted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |