Package org.apache.mina.filter.executor
Interface IoEventQueueHandler
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
IoEventQueueThrottle
Listens and filters all event queue operations occurring in
OrderedThreadPoolExecutor and UnorderedThreadPoolExecutor.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IoEventQueueHandlerA dummy handler which always accepts event doing nothing particular. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidInvoked after the specifiedeventhas been offered to the event queue.voidInvoked after the specifiedeventhas been polled from the event queue.
-
Field Details
-
NOOP
A dummy handler which always accepts event doing nothing particular.
-
-
Method Details
-
accept
- 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
Invoked after the specifiedeventhas been offered to the event queue.- Parameters:
source- The source of eventevent- The received event
-
polled
Invoked after the specifiedeventhas been polled from the event queue.- Parameters:
source- The source of eventevent- The received event
-