java.lang.Object
org.evrete.api.events.Events.Subscriptions
- Enclosing class:
- Events
Utility class for cancelling multiple
Events.Subscription objects at once.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(Events.Subscription subscription) Adds aSubscriptionto this utility.voidcancel()Cancels all added subscriptions and removes them from the collection.
-
Constructor Details
-
Subscriptions
public Subscriptions()
-
-
Method Details
-
add
Adds aSubscriptionto this utility.- Parameters:
subscription- theSubscriptionto add- Returns:
- the current
Subscriptionsinstance
-
cancel
public void cancel()Cancels all added subscriptions and removes them from the collection.
-