com.sun.grizzly
Class ContextTask

java.lang.Object
  extended by com.sun.grizzly.ContextTask
All Implemented Interfaces:
Runnable, Callable
Direct Known Subclasses:
SelectionKeyContextTask

public abstract class ContextTask
extends Object
implements Callable, Runnable

Task, which will be executed by Context, when Context.execute(ContextTask) is called.

Author:
Alexey Stashok

Field Summary
protected  Context context
           
 
Constructor Summary
ContextTask()
           
 
Method Summary
 Context getContext()
           
 void recycle()
           
 void run()
           
 void setContext(Context context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.Callable
call
 

Field Detail

context

protected Context context
Constructor Detail

ContextTask

public ContextTask()
Method Detail

getContext

public Context getContext()

setContext

public void setContext(Context context)

recycle

public void recycle()

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2012 Oracle Corporation. All Rights Reserved.