public interface IoEventQueueHandler extends EventListener
OrderedThreadPoolExecutor and UnorderedThreadPoolExecutor.| Modifier and Type | Field and Description |
|---|---|
static IoEventQueueHandler |
NOOP
A dummy handler which always accepts event doing nothing particular.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Object source,
IoEvent event)
Returns true if and only if the specified event is
allowed to be offered to the event queue.
|
void |
offered(Object source,
IoEvent event)
Invoked after the specified event has been offered to the
event queue.
|
void |
polled(Object source,
IoEvent event)
Invoked after the specified event has been polled from the
event queue.
|
static final IoEventQueueHandler NOOP
boolean accept(Object source, IoEvent event)
void offered(Object source, IoEvent event)