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 eventtrue
if and only if the specified event
is
allowed to be offered to the event queue. The event
is dropped
if false
is returned.void offered(Object source, IoEvent event)
event
has been offered to the
event queue.source
- The source of eventevent
- The received eventCopyright © 2004–2025 Apache MINA Project. All rights reserved.