TIBCO eFTL™
|
Subscription event handler. More...
Public Member Functions | |
void | OnError (String subscriptionId, int code, String reason) |
Process subscription errors. More... | |
void | OnMessages (IMessage[] messages) |
Process inbound messages. More... | |
void | OnSubscribe (String subscriptionId) |
A new subscription is ready to receive messages. More... | |
Subscription event handler.
You must implement this interface to process inbound messages and other subscription events.
Supply an instance when you call IConnection.Subscribe(String, String, ISubscriptionListener) or IConnection.Subscribe(String, ISubscriptionListener).
void TIBCO.EFTL.ISubscriptionListener.OnError | ( | String | subscriptionId, |
int | code, | ||
String | reason | ||
) |
Process subscription errors.
Possible returned codes include:
subscriptionId | eFTL could not establish this subscription. |
code | This code categorizes the error. Your program can use this value in its response logic. |
reason | This string provides more detail. Your program can use this value in error reporting and logging. |
void TIBCO.EFTL.ISubscriptionListener.OnMessages | ( | IMessage[] | messages | ) |
Process inbound messages.
The eFTL library presents inbound messages to this method for processing. You must implement this method to process the messages.
The messages are not thread-safe. You may access a message in any thread, but in only one thread at a time.
messages | Inbound messages. |
void TIBCO.EFTL.ISubscriptionListener.OnSubscribe | ( | String | subscriptionId | ) |
A new subscription is ready to receive messages.
The eFTL library may invoke this method after the first message arrives.
To close the subscription, call IConnection.Unsubscribe with this subscription identifier.
subscriptionId | This subscription is ready. |