Package io.microsphere.event
Interface ConditionalEventListener<E extends Event>
-
- All Superinterfaces:
java.lang.Comparable<Prioritized>,EventListener<E>,java.util.EventListener,Prioritized
public interface ConditionalEventListener<E extends Event> extends EventListener<E>
AnEventListenerextending the conditional feature thatdecidessomeeventis handled or not by current listener.- Since:
- 1.0.0
- See Also:
EventListener
-
-
Field Summary
-
Fields inherited from interface io.microsphere.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(E event)Accept the event is handled or not by current listener-
Methods inherited from interface io.microsphere.event.EventListener
getPriority, onEvent
-
Methods inherited from interface io.microsphere.lang.Prioritized
compareTo
-
-