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) |
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)
source
- The source of eventevent
- The received eventvoid offered(Object source, IoEvent event)
source
- The source of eventevent
- The received eventCopyright © 2004–2016 Apache MINA Project. All rights reserved.