public class PersistenceSubscriptionWrapper extends java.lang.Object implements SubscriptionHandler
Modifier and Type | Method and Description |
---|---|
void |
onData(Subscription s,
MicroAgentData data)
This method receives the data for a particular
subscription.
|
void |
onError(Subscription s,
MicroAgentException e)
This method is called when an error causes an interruption in the
servicing of a subscription.
|
void |
onErrorCleared(Subscription s)
This method is called when there no longer is an error condition
which is interrupting service.
|
void |
onTermination(Subscription s,
MicroAgentException e)
This method is called when an error condition causes the subscription
to be terminated.
|
public void onData(Subscription s, MicroAgentData data)
SubscriptionHandler
onData
in interface SubscriptionHandler
s
- The Subscription object generated when the subscription was made.data
- The data produced by the MicroAgent.public void onError(Subscription s, MicroAgentException e)
SubscriptionHandler
onError
in interface SubscriptionHandler
s
- The Subscription object generated when the subscription was made.e
- An exception identifying the errorpublic void onErrorCleared(Subscription s)
SubscriptionHandler
onErrorCleared
in interface SubscriptionHandler
s
- The Subscription object generated when the subscription was made.public void onTermination(Subscription s, MicroAgentException e)
SubscriptionHandler
onTermination
in interface SubscriptionHandler
s
- The Subscription object generated when the subscription was made.e
- An exception identifying the error condition that caused the terminationCopyright © 2000-2019 TIBCO Inc. All Rights Reserved.