Package io.atomix.utils.event
Interface EventFilter<E extends Event>
-
- All Known Subinterfaces:
EventListener<E>
public interface EventFilter<E extends Event>Entity capable of filtering events.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisRelevant(E event)Indicates whether the specified event is of interest or not.
-
-
-
Method Detail
-
isRelevant
default boolean isRelevant(E event)
Indicates whether the specified event is of interest or not. Default implementation always returns true.- Parameters:
event- event to be inspected- Returns:
- true if event is relevant; false otherwise
-
-