|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.utils.ProcessorWrapper<E>
public class ProcessorWrapper<E extends Context>
Processor, which redirects all calls to internal Processor
instance;
| Constructor Summary | |
|---|---|
ProcessorWrapper(Processor<E> internalProcessor)
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessorWrapper(Processor<E> internalProcessor)
| Method Detail |
|---|
public E context()
ProcessorContext
context in interface Processor<E extends Context>Context, or null, if default Context
could be used.
public void beforeProcess(E context)
throws IOException
ProcessorProcessor.
beforeProcess in interface Processor<E extends Context>context - processing context
IOException
public ProcessorResult process(E context)
throws IOException
Processor
process in interface Processor<E extends Context>context - processing context
IOException
public void afterProcess(E context)
throws IOException
ProcessorProcessor execution,
so it can release associated resources.
afterProcess in interface Processor<E extends Context>context - processing context
IOExceptionpublic boolean isInterested(IOEvent ioEvent)
ProcessorProcessor interested in processing the i/o event
isInterested in interface Processor<E extends Context>Processor is interested and execution
process will start, false otherwise.
public void setInterested(IOEvent ioEvent,
boolean isInterested)
ProcessorProcessor is interested in
setInterested in interface Processor<E extends Context>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 | |||||||||