Package org.apache.mina.filter.executor
Interface IoEventQueueHandler
-
- All Superinterfaces:
java.util.EventListener
- All Known Implementing Classes:
IoEventQueueThrottle
public interface IoEventQueueHandler extends java.util.EventListenerListens and filters all event queue operations occurring inOrderedThreadPoolExecutorandUnorderedThreadPoolExecutor.
-
-
Field Summary
Fields Modifier and Type Field Description static IoEventQueueHandlerNOOPA dummy handler which always accepts event doing nothing particular.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(java.lang.Object source, IoEvent event)voidoffered(java.lang.Object source, IoEvent event)Invoked after the specifiedeventhas been offered to the event queue.voidpolled(java.lang.Object source, IoEvent event)Invoked after the specifiedeventhas been polled from the event queue.
-
-
-
Field Detail
-
NOOP
static final IoEventQueueHandler NOOP
A dummy handler which always accepts event doing nothing particular.
-
-
Method Detail
-
accept
boolean accept(java.lang.Object source, IoEvent event)- Parameters:
source- The source of eventevent- The received event- Returns:
trueif and only if the specified>eventis allowed to be offered to the event queue. Theeventis dropped iffalseis returned.
-
offered
void offered(java.lang.Object source, IoEvent event)Invoked after the specifiedeventhas been offered to the event queue.- Parameters:
source- The source of eventevent- The received event
-
polled
void polled(java.lang.Object source, IoEvent event)Invoked after the specifiedeventhas been polled from the event queue.- Parameters:
source- The source of eventevent- The received event
-
-