Package io.atomix.utils.event
Interface ListenerService<E extends Event,L extends EventListener<E>>
- All Known Implementing Classes:
AbstractListenerManager,ListenerRegistry
public interface ListenerService<E extends Event,L extends EventListener<E>>
Abstraction of a service capable of asynchronously notifying listeners.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(L listener) Adds the specified listener.voidremoveListener(L listener) Removes the specified listener.
-
Method Details
-
addListener
Adds the specified listener.- Parameters:
listener- listener to be added
-
removeListener
Removes the specified listener.- Parameters:
listener- listener to be removed
-