com.sun.grizzly
Class CallbackHandlerContextTask
java.lang.Object
com.sun.grizzly.ContextTask
com.sun.grizzly.SelectionKeyContextTask
com.sun.grizzly.CallbackHandlerContextTask
- All Implemented Interfaces:
- Callable
public class CallbackHandlerContextTask
- extends SelectionKeyContextTask
CallbackHandler
task, which will be executed by
Context
, when Context.execute(ContextTask
)
is called.
- Author:
- Alexey Stashok
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CallbackHandlerContextTask
public CallbackHandlerContextTask()
poll
public static CallbackHandlerContextTask poll()
offer
public static void offer(CallbackHandlerContextTask contextTask)
doCall
protected Object doCall()
throws Exception
- Specified by:
doCall
in class SelectionKeyContextTask
- Throws:
Exception
getCallBackHandler
public CallbackHandler getCallBackHandler()
setCallBackHandler
public void setCallBackHandler(CallbackHandler callBackHandler)
recycle
public void recycle()
- Overrides:
recycle
in class ContextTask
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.