onUnsubscription method

void onUnsubscription()

Event handler that is called by Lightstreamer to notify that a Subscription has been successfully unsubscribed from.

This can happen multiple times in the life of a Subscription instance, in case the Subscription is performed multiple times through LightstreamerClient.unsubscribe and LightstreamerClient.subscribe. This can also happen multiple times in case of automatic recovery after a connection restart.
After this notification no more events can be received until a new onSubscription event.
Note that two consecutive calls to this method are not possible, as before a second onUnsubscription event is fired an onSubscription event is eventually fired.
If the involved Subscription has a two-level behavior enabled (see Subscription.setCommandSecondLevelFields and Subscription.setCommandSecondLevelFieldSchema) , second-level unsubscriptions are not notified.

Implementation

void onUnsubscription() {}