Interface EventBus.Subscription
- All Superinterfaces:
AutoCloseable
- Enclosing class:
EventBus
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A clean API for unregistering handlers. Implement AutoCloseable for try-with-resources support.
-
Method Summary
-
Method Details
-
cancel
void cancel() -
close
default void close()- Specified by:
closein interfaceAutoCloseable
-