|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.ProcessorRunnable
public class ProcessorRunnable
Runnable task, which encapsulates Processor execution
information and actually runs Processor
to process occured IOEvent.
Usually ProcessorRunnable task is constructed by Transport
and passed to Strategy, which makes decision how this task should
be executed.
| Constructor Summary | |
|---|---|
ProcessorRunnable(Context context)
|
|
ProcessorRunnable(IOEvent ioEvent,
Connection connection,
Processor processor,
PostProcessor postProcessor)
|
|
| Method Summary | |
|---|---|
protected void |
createContext()
Create Context instance. |
Connection |
getConnection()
Get the processing Connection. |
Context |
getContext()
Get the processing Context. |
IOEvent |
getIoEvent()
Get the processing IOEvent. |
PostProcessor |
getPostProcessor()
Get the PostProcessor, which will be called after
Processor will finish its execution to finish IOEvent processing. |
Processor |
getProcessor()
Get the Processor, which is responsible to process
the IOEvent. |
protected void |
initContext()
Initialize Context with task's settings. |
boolean |
isSuspended()
Returns true is task was suspended (terminated, but not completed), so it's possible to resume task processing. |
void |
run()
Runs the IOEvent processing. |
void |
setConnection(Connection connection)
Set the processing Connection. |
void |
setContext(Context context)
Set the processing Context. |
void |
setIoEvent(IOEvent ioEvent)
Set the processing IOEvent. |
void |
setPostProcessor(PostProcessor ioEventPostProcessor)
Set the PostProcessor, which will be called after
Processor will finish its execution to finish IOEvent processing. |
void |
setProcessor(Processor processor)
Set the Processor, which is responsible to process
the IOEvent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessorRunnable(Context context)
public ProcessorRunnable(IOEvent ioEvent,
Connection connection,
Processor processor,
PostProcessor postProcessor)
| Method Detail |
|---|
public boolean isSuspended()
public IOEvent getIoEvent()
IOEvent.
IOEvent.public void setIoEvent(IOEvent ioEvent)
IOEvent.
ioEvent - the processing IOEvent.public Connection getConnection()
Connection.
Connection.public void setConnection(Connection connection)
Connection.
connection - the processing Connection.public Processor getProcessor()
Processor, which is responsible to process
the IOEvent.
Processor, which is responsible to process
the IOEvent.public void setProcessor(Processor processor)
Processor, which is responsible to process
the IOEvent.
processor - the Processor, which is responsible to process
the IOEvent.public PostProcessor getPostProcessor()
PostProcessor, which will be called after
Processor will finish its execution to finish IOEvent processing.
PostProcessor, which will be called after
Processor will finish its execution to finish IOEvent processing.public void setPostProcessor(PostProcessor ioEventPostProcessor)
PostProcessor, which will be called after
Processor will finish its execution to finish IOEvent processing.
ioEventPostProcessor - the PostProcessor, which will be
called after Processor will finish its execution to
finish IOEvent processing.public Context getContext()
Context.
Context.public void setContext(Context context)
Context.
context - the processing Context.public void run()
run in interface Runnableprotected void createContext()
Context instance.
protected void initContext()
Context with task's settings.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||