UMDS .NET API  6.14
com.latencybusters.umds.UMDSWildcardReceiver Class Reference

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. More...

Inheritance diagram for com.latencybusters.umds.UMDSWildcardReceiver:
com.latencybusters.umds.UMDSReceiver com.latencybusters.umds.UMDSReceiverBase

Public Member Functions

 UMDSWildcardReceiver (UMDSServerConnection sconn, System.String topic)
 This constructor creates a wildcard receiver object on a UMDS connection. More...
 
virtual void onMessage (UMDSMessage msg)
 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() More...
 
override void onEvent (UMDSMessage msg)
 Event Notification function. This function is called when non-data events occur, E.G. Loss reported by the server. This should be overridden by applications. Expected message types: LOSS, DISCONNECT, SERVER_DENIED, RECEIVER_CREATE and RECEIVER_DELETE. More...
 
override void onRequest (UMDSMessage msg)
 Callback for request messages received. Implement this method to receive requests. More...
 
void close ()
 Close this receiver. The server will send an asynchronous ACK for this operation, queued messages will be received before the ACK is delivered. More...
 
virtual void log (int level, System.String comment)
 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. More...
 
Object getReceiverRecoveryInfoCbArg ()
 

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,
System.String  topic 
)

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

the UMDS exception

Exceptions
UMDSException
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

Member Function Documentation

void com.latencybusters.umds.UMDSReceiver.close ( )
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
virtual void com.latencybusters.umds.UMDSReceiverBase.log ( int  level,
System.String  comment 
)
virtualinherited

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.

the UMDS exception

Exceptions
UMDSException

References com.latencybusters.umds.UMDS.log(), and com.latencybusters.umds.UMDSServerConnection.UMDS.

override void com.latencybusters.umds.UMDSReceiver.onEvent ( UMDSMessage  msg)
virtualinherited
virtual void com.latencybusters.umds.UMDSReceiver.onMessage ( UMDSMessage  msg)
virtualinherited

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
M:onEvent
Parameters
msgThe message containing the received data

References com.latencybusters.umds.UMDSMessage.length().

override void com.latencybusters.umds.UMDSReceiver.onRequest ( UMDSMessage  msg)
virtualinherited

Callback for request messages received. Implement this method to receive requests.

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.

Implements com.latencybusters.umds.UMDSReceiverBase.


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