|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BlockingSenderDestination
Facilitates the transmission of messages in a way that waits for a response while blocking thread execution.
| Method Summary | ||
|---|---|---|
Message |
sendReceive()
Sends an empty message to this destination and waits for a response. |
|
Message |
sendReceive(Message message)
Sends a message to this destination and waits for a response. |
|
MessageFuture |
sendReceiveAsFuture()
Sends an empty message to this destination and returns a MessageFuture to receive the response later. |
|
MessageFuture |
sendReceiveAsFuture(Message message)
Sends a message to this destination and returns a MessageFuture to receive the response later. |
|
| Methods inherited from interface net.rim.device.api.io.messaging.SenderDestination |
|---|
cancel, cancelAllCancellable, createByteMessage, createStreamMessage |
| Methods inherited from interface net.rim.device.api.io.messaging.Destination |
|---|
destroy, getUri, pause, release, resume |
| Method Detail |
|---|
Message sendReceive(Message message)
throws MessageFailureException
MessageFailureException is thrown.
message - The message to send.
Message in response to the message sent.
MessageFailureException - If the message cannot be sent.
Message sendReceive()
throws MessageFailureException
MessageFailureException is thrown.
Message in response to the message sent.
MessageFailureException - If the message cannot be sent.
MessageFuture sendReceiveAsFuture(Message message)
throws MessageFailureException
MessageFuture to receive the response later.
This method will return immediately, however the response in MessageFuture may not be available.
This minimizes the amount of time this thread will be blocked.
message - The message to send. If null, an empty message will be sent.
MessageFuture object that will contain the response when it arrives.
MessageFailureException - If the message is unable to be sent.MessageFuture
MessageFuture sendReceiveAsFuture()
throws MessageFailureException
MessageFuture to receive the response later.
This method will return immediately, however the response in MessageFuture may not be available.
This minimizes the amount of time this thread will be blocked.
MessageFuture object that will contain the response when it arrives.
MessageFailureException - If the message is unable to be sent.MessageFuture
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal