com.sun.grizzly
Class ProtocolChainContextTask

java.lang.Object
  extended by com.sun.grizzly.ContextTask
      extended by com.sun.grizzly.SelectionKeyContextTask
          extended by com.sun.grizzly.ProtocolChainContextTask
All Implemented Interfaces:
Callable

public class ProtocolChainContextTask
extends SelectionKeyContextTask

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

Author:
Alexey Stashok

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.grizzly.ContextTask
ContextTask.TaskPool<E extends ContextTask>
 
Field Summary
 
Fields inherited from class com.sun.grizzly.ContextTask
context
 
Constructor Summary
ProtocolChainContextTask()
           
 
Method Summary
protected  Object doCall()
           
 void offer()
          Return instance to the pool WARN: Do not call super.offer(), as it can lead to multiple offer call
static void offer(ProtocolChainContextTask contextTask)
           
static ProtocolChainContextTask poll()
           
 
Methods inherited from class com.sun.grizzly.SelectionKeyContextTask
afterCall, beforeCall, call
 
Methods inherited from class com.sun.grizzly.ContextTask
getContext, recycle, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolChainContextTask

public ProtocolChainContextTask()
Method Detail

poll

public static ProtocolChainContextTask poll()

offer

public static void offer(ProtocolChainContextTask contextTask)

doCall

protected Object doCall()
                 throws Exception
Specified by:
doCall in class SelectionKeyContextTask
Throws:
Exception

offer

public void offer()
Description copied from class: ContextTask
Return instance to the pool WARN: Do not call super.offer(), as it can lead to multiple offer call

Specified by:
offer in class ContextTask


Copyright © 2011 SUN Microsystems. All Rights Reserved.