|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Processor<E extends Context>
Processor implementations are responsible for processing I/O events, which occur on connection.
| Method Summary | |
|---|---|
void |
afterProcess(E context)
Method will be called by framework after Processor execution,
so it can release associated resources. |
void |
beforeProcess(E context)
Method will be called by framework before executing this Processor. |
E |
context()
Creates Context |
boolean |
isInterested(IOEvent ioEvent)
Is this Processor interested in processing the i/o event |
ProcessorResult |
process(E context)
Method will be called by framework to process some event, which occured on a connection |
void |
setInterested(IOEvent ioEvent,
boolean isInterested)
Set the the i/o event, this Processor is interested in |
| Method Detail |
|---|
E context()
Context
Context, or null, if default Context
could be used.
void beforeProcess(E context)
throws IOException
Processor.
context - processing context
IOException
ProcessorResult process(E context)
throws IOException
context - processing context
IOException
void afterProcess(E context)
throws IOException
Processor execution,
so it can release associated resources.
context - processing context
IOExceptionboolean isInterested(IOEvent ioEvent)
Processor interested in processing the i/o event
ioEvent -
Processor is interested and execution
process will start, false otherwise.
void setInterested(IOEvent ioEvent,
boolean isInterested)
Processor is interested in
ioEvent - IOEventisInterested - true, if Processor is interested in
processing of the I/O event, or false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||