com.sun.grizzly.async
Class AsyncQueueReaderContextTask

java.lang.Object
  extended by com.sun.grizzly.ContextTask
      extended by com.sun.grizzly.SelectionKeyContextTask
          extended by com.sun.grizzly.async.AsyncQueueReaderContextTask
All Implemented Interfaces:
Runnable, Callable

public class AsyncQueueReaderContextTask
extends SelectionKeyContextTask

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

Author:
Alexey Stashok

Field Summary
 
Fields inherited from class com.sun.grizzly.ContextTask
context
 
Constructor Summary
AsyncQueueReaderContextTask(AsyncQueueReader asyncQueueReader)
           
 
Method Summary
protected  void afterCall()
           
protected  void beforeCall()
           
 Object doCall()
           
 AsyncQueueReader getAsyncQueueReader()
           
 void recycle()
           
 void setAsyncQueueReader(AsyncQueueReader asyncQueueReader)
           
 
Methods inherited from class com.sun.grizzly.SelectionKeyContextTask
call
 
Methods inherited from class com.sun.grizzly.ContextTask
getContext, run, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncQueueReaderContextTask

public AsyncQueueReaderContextTask(AsyncQueueReader asyncQueueReader)
Method Detail

afterCall

protected void afterCall()
Overrides:
afterCall in class SelectionKeyContextTask

beforeCall

protected void beforeCall()
Overrides:
beforeCall in class SelectionKeyContextTask

doCall

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

getAsyncQueueReader

public AsyncQueueReader getAsyncQueueReader()

setAsyncQueueReader

public void setAsyncQueueReader(AsyncQueueReader asyncQueueReader)

recycle

public void recycle()
Overrides:
recycle in class ContextTask


Copyright © 2012 Oracle Corporation. All Rights Reserved.