net.rim.device.api.io.messaging
Interface NonBlockingSenderDestination

All Superinterfaces:
Destination, SenderDestination

public interface NonBlockingSenderDestination
extends SenderDestination

This interface facilitates the transmission of messages without blocking the main event thread.

Since:
BlackBerry API 6.0.0

Method Summary
 int send()
          Sends a message to this destination.
 int send(Message message)
          Sends a message to this destination.
 
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

send

int send(Message message)
         throws MessageFailureException
Sends a message to this destination. Responses to the message will be delivered to the MessageListener if one was specified in the createNonBlockingSenderDestination method.

Parameters:
message - The message to send.
Returns:
Message ID token used to refer to a message later.
Throws:
MessageFailureException - If the message delivery fails.
Since:
BlackBerry API 6.0.0

send

int send()
         throws MessageFailureException
Sends a message to this destination. Responses to the message will be delivered to the MessageListener if one was specified in the createNonBlockingSenderDestination method.

Returns:
Message ID token used to refer to a message later.
Throws:
MessageFailureException - If the message delivery fails.
Since:
BlackBerry API 6.0.0





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