UMDS Java API  6.14
com.latencybusters.umds.UMDSWildcardReceiver Class Reference
Inheritance diagram for com.latencybusters.umds.UMDSWildcardReceiver:
com.latencybusters.umds.UMDSReceiver

Public Member Functions

 UMDSWildcardReceiver (UMDSServerConnection sconn, String topic) throws UMDSException
 
void onMessage (UMDSMessage msg)
 
void onEvent (UMDSMessage msg)
 
void onRequest (UMDSMessage msg)
 
final void close () throws UMDSException
 
void log (int level, String comment)
 
Object getReceiverRecoveryInfoCbArg ()
 

Protected Attributes

UMDSReceiverRecoveryInfoCallback receiverRecoveryInfoCb = null
 
Object receiverRecoveryInfoCbArg = null
 
UMDSServerConnection server
 
String topic
 

Detailed Description

class UMDSWildcardReceiver is the receiving class for UMDS receivers using a wildcard topic string.

Applications shall derive from it to implement their receiving object. Applications must override the onMessage() API to receive data.

Constructor & Destructor Documentation

com.latencybusters.umds.UMDSWildcardReceiver.UMDSWildcardReceiver ( UMDSServerConnection  sconn,
String  topic 
) throws UMDSException

This constructor creates a wildcard receiver object on a UMDS connection.

Parameters
sconnThe server connection object this receiver is tied to. This explicitly ties the receiver to a server.
topicThe topic this receiver is receiving on
Exceptions
UMDSExceptionthe UMDS exception

Member Function Documentation

final void com.latencybusters.umds.UMDSReceiver.close ( ) throws UMDSException
inherited

Close this receiver. The server will send an asynchronous ACK for this operation, queued messages will be received before the ACK is delivered.

Exceptions
UMDSExceptionWhen the receiver could not be cleanly deleted
void com.latencybusters.umds.UMDSReceiverBase.log ( int  level,
String  comment 
)
inherited

Log a receiver related message. This API currently does nothing unique, but is provided as an aid to users deriving from the class but may in the future be updated to identify the receiver automatically.

Exceptions
UMDSExceptionthe UMDS exception
void com.latencybusters.umds.UMDSReceiver.onEvent ( UMDSMessage  msg)
inherited
void com.latencybusters.umds.UMDSReceiver.onMessage ( UMDSMessage  msg)
inherited

Message Delivery function. This is called to deliver messages to the application.

This should be overridden by applications.

Only data messages will be given to onMessage()

See also
onEvent
Parameters
msgThe message containing the received data

References com.latencybusters.umds.UMDSMessage.length(), and com.latencybusters.umds.UMDS.LOG_LEVEL.WARN.

Referenced by com.latencybusters.umds.UMDSReceiver.UMDSReceiver().

void com.latencybusters.umds.UMDSReceiver.onRequest ( UMDSMessage  msg)
inherited

Callback for request messages received. Implement this method to receive requests. Expected message types: REQUEST.

Parameters
msgThe type for request messages is REQUEST. All UMDSMessage interfaces that are valid for DATA messages are also valid for request messages. The requestID is undefined for received requests, as it is a source-side-only correlation ID.

References com.latencybusters.umds.UMDS.LOG_LEVEL.WARN.

Member Data Documentation

UMDSServerConnection com.latencybusters.umds.UMDSReceiverBase.server
protectedinherited

The UMDS Server Connection associated with this receiver

String com.latencybusters.umds.UMDSReceiverBase.topic
protectedinherited

This receivers interested topic


The documentation for this class was generated from the following file: