Package io.atomix.utils.event
Provides classes and interfaces for creating and handling generic events.
-
Interface Summary Interface Description Event<T,S> Abstraction of an of a time-stamped event pertaining to an arbitrary subject.EventFilter<E extends Event> Entity capable of filtering events.EventListener<E extends Event> Entity capable of receiving events.EventSink<E extends Event> Abstraction of an event sink capable of processing the specified event types.ListenerService<E extends Event,L extends EventListener<E>> Abstraction of a service capable of asynchronously notifying listeners. -
Class Summary Class Description AbstractEvent<T extends Enum,S> Base event implementation.AbstractListenerManager<E extends Event,L extends EventListener<E>> Basis for components which need to export listener mechanism.ListenerRegistry<E extends Event,L extends EventListener<E>> Base implementation of an event sink and a registry capable of tracking listeners and dispatching events to them as part of event sink processing.