org.apache.mina.filter.executor
Interface IoEventQueueHandler

All Superinterfaces:
EventListener
All Known Implementing Classes:
IoEventQueueThrottle

public interface IoEventQueueHandler
extends EventListener

Listenes and filters all event queue operations occurring in OrderedThreadPoolExecutor and UnorderedThreadPoolExecutor.

Version:
$Rev: 593426 $, $Date: 2007-11-09 07:22:24 +0100 (Fri, 09 Nov 2007) $
Author:
The Apache MINA Project (dev@mina.apache.org)

Method Summary
 boolean accept(ThreadPoolExecutor executor, IoEvent event)
          Returns true if and only if the specified event is allowed to be offered to the event queue.
 void offered(ThreadPoolExecutor executor, IoEvent event)
          Invoked after the specified event has been offered to the event queue.
 void polled(ThreadPoolExecutor executor, IoEvent event)
          Invoked after the specified event has been polled from the event queue.
 

Method Detail

accept

boolean accept(ThreadPoolExecutor executor,
               IoEvent event)
Returns true if and only if the specified event is allowed to be offered to the event queue. The event is dropped if false is returned.


offered

void offered(ThreadPoolExecutor executor,
             IoEvent event)
Invoked after the specified event has been offered to the event queue.


polled

void polled(ThreadPoolExecutor executor,
            IoEvent event)
Invoked after the specified event has been polled from the event queue.



Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.