|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockingReceiverDestination
Facilitates the reception of messages while blocking the thread execution.
Method Summary | ||
---|---|---|
Message |
receive()
Returns a Message . |
|
Message |
receive(long timeout)
Returns a Message . |
|
Message |
receiveNoWait()
Returns a Message if one exists. |
Methods inherited from interface net.rim.device.api.io.messaging.ReceiverDestination |
---|
getConfig |
Methods inherited from interface net.rim.device.api.io.messaging.Destination |
---|
destroy, getUri, pause, release, resume |
Method Detail |
---|
Message receive() throws MessagingException
Message
. Blocks thread execution until a message is delivered.
MessagingException
- If this destination is not an incoming destination.Message receive(long timeout) throws MessagingException
Message
. Blocks thread execution until a message is delivered,
or the timeout
is reached.
timeout
- Maximum amount of time to wait for message to be delivered in milliseconds.
Message
, if one was delivered within the timeout; otherwise null
.
MessagingException
- If this destination is not an incoming destination.Message receiveNoWait() throws MessagingException
Message
if one exists. Does not block thread execution.
MessagingException
- If this destination is not an incoming destination.
|
|||||||||
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