Package dev.demeng.pluginbase.event
Interface Subscription
- All Superinterfaces:
AutoCloseable,Terminable
- All Known Subinterfaces:
MergedSubscription<T>,SingleSubscription<T>
Represents a subscription to a given (set of) event(s).
-
Field Summary
Fields inherited from interface dev.demeng.pluginbase.terminable.Terminable
EMPTY -
Method Summary
Methods inherited from interface dev.demeng.pluginbase.terminable.Terminable
bindWith, closeAndReportException, closeSilently, isClosed
-
Method Details
-
isActive
boolean isActive()Gets whether the handler is active- Returns:
- if the handler is active
-
getCallCounter
long getCallCounter()Gets the number of times the handler has been called- Returns:
- the number of times the handler has been called
-
unregister
boolean unregister()Unregisters the handler- Returns:
- true if the handler wasn't already unregistered
-
close
default void close()Description copied from interface:TerminableCloses this resource.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceTerminable
-
getFunctions
Deprecated.not API, subject to change or removalGets the functional handlers and filters used by this subscription.- Returns:
- the functions used by this subscription.
-