Joltuserevent class, Joltevent methods, Unsubscribe – HP NonStop G-Series User Manual

Page 127: Unsubscribeall

Advertising
background image

invokes a service.

For additional information, refer also to the JoltSession class.

public class JoltEvent

unsubscribe()
unsubscribeAll(Session)

JoltEvent Methods

The following methods are used with the JoltEvent class.

unsubscribe

Deletes the subscription to an event.

public int unsubscribe()

Usage This method is used to stop subscribing to the event specified in the constructor. Once it is unsubscribed, this
object becomes obsoleted. All notifications received as a result of a subscription will cause the onReply() method in the
session to be invoked.

Returns Number of subscriptions deleted.

Throws

EventException.

No such event or invalid event.

SessionException.

An error occurs in this session.

unsubscribeAll

Unsubscribes all event subscriptions in the specified session.

public static int unsubscribeAll(Session session)

Usage Unsubscribe all event subscriptions in the specified session. The session parameter requires a Jolt session object.

Returns Number of subscriptions deleted.

Throws

EventException.

Unsubscription error from TUXEDO.

SessionException.

Invalid session or a session error.

JoltUserEvent Class

java.lang.Object
|
+----bea.jolt.JoltEvent
|

Advertising