UMDS Java API
6.14
|
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 |
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.
com.latencybusters.umds.UMDSWildcardReceiver.UMDSWildcardReceiver | ( | UMDSServerConnection | sconn, |
String | topic | ||
) | 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.
UMDSException | When the receiver could not be cleanly deleted |
|
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.
UMDSException | the UMDS exception |
|
inherited |
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.
msg | The message containing the event |
References com.latencybusters.umds.UMDSMessage.MSG_STATUS.CLOSE_PENDING, com.latencybusters.umds.UMDSMessage.MSG_TYPE.DISCONNECT, com.latencybusters.umds.UMDS.LOG_LEVEL.INFO, com.latencybusters.umds.UMDSMessage.MSG_TYPE.LOSS, com.latencybusters.umds.UMDSMessage.MSG_TYPE.RECEIVER_CREATE, com.latencybusters.umds.UMDSMessage.MSG_TYPE.RECEIVER_DELETE, com.latencybusters.umds.UMDSMessage.seqnum, com.latencybusters.umds.UMDSMessage.MSG_TYPE.SERVER_DENIED, com.latencybusters.umds.UMDSMessage.srcidx, com.latencybusters.umds.UMDSMessage.status, com.latencybusters.umds.UMDSMessage.status_str, and com.latencybusters.umds.UMDSMessage.type.
|
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()
msg | The 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().
|
inherited |
Callback for request messages received. Implement this method to receive requests. Expected message types: REQUEST.
msg | The 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.
|
protectedinherited |
The UMDS Server Connection associated with this receiver
|
protectedinherited |
This receivers interested topic