|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockingTarget
Extends Target
and provides a timeout-aware send method.
Method Summary | |
---|---|
boolean |
send(Message<?> message)
Send a message, blocking indefinitely if necessary. |
boolean |
send(Message<?> message,
long timeout)
Send a message, blocking until either the message is accepted or the specified timeout period elapses. |
Method Detail |
---|
boolean send(Message<?> message)
send
in interface Target
message
- the Message
to send
true
if the message is sent successfully,
false if interrupted
boolean send(Message<?> message, long timeout)
message
- the Message
to sendtimeout
- the timeout in milliseconds
true
if the message is sent successfully,
false if the specified timeout period elapses or
the send is interrupted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |