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
Modifier and TypeMethodDescriptiondefault booleanisRelevant(E event) Indicates whether the specified event is of interest or not.
-
Method Details
-
isRelevant
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
-