org.glassfish.grizzly.asyncqueue
Class AsyncQueueRecord<R>

java.lang.Object
  extended by org.glassfish.grizzly.asyncqueue.AsyncQueueRecord<R>
All Implemented Interfaces:
Cacheable
Direct Known Subclasses:
AsyncReadQueueRecord, AsyncWriteQueueRecord

public abstract class AsyncQueueRecord<R>
extends java.lang.Object
implements Cacheable

AsyncQueue element unit

Author:
Alexey Stashok

Field Summary
protected  CompletionHandler completionHandler
           
protected  Connection connection
           
protected  R currentResult
           
protected  java.util.concurrent.Future future
           
protected  boolean isRecycled
           
protected  Buffer message
           
protected  DebugPoint recycleTrack
           
 
Constructor Summary
AsyncQueueRecord(Connection connection, Buffer message, java.util.concurrent.Future future, R currentResult, CompletionHandler completionHandler)
           
 
Method Summary
protected  void checkRecycled()
           
 CompletionHandler getCompletionHandler()
           
 Connection getConnection()
           
 R getCurrentResult()
           
 java.util.concurrent.Future getFuture()
           
 Buffer getMessage()
           
protected  void set(Connection connection, Buffer message, java.util.concurrent.Future future, R currentResult, CompletionHandler completionHandler)
           
 void setFuture(java.util.concurrent.Future future)
           
 void setMessage(Buffer message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.grizzly.Cacheable
recycle
 

Field Detail

connection

protected Connection connection

message

protected Buffer message

future

protected java.util.concurrent.Future future

currentResult

protected R currentResult

completionHandler

protected CompletionHandler completionHandler

isRecycled

protected boolean isRecycled

recycleTrack

protected DebugPoint recycleTrack
Constructor Detail

AsyncQueueRecord

public AsyncQueueRecord(Connection connection,
                        Buffer message,
                        java.util.concurrent.Future future,
                        R currentResult,
                        CompletionHandler completionHandler)
Method Detail

set

protected final void set(Connection connection,
                         Buffer message,
                         java.util.concurrent.Future future,
                         R currentResult,
                         CompletionHandler completionHandler)

getConnection

public Connection getConnection()

getMessage

public final Buffer getMessage()

setMessage

public final void setMessage(Buffer message)

getFuture

public final java.util.concurrent.Future getFuture()

setFuture

public void setFuture(java.util.concurrent.Future future)

getCurrentResult

public final R getCurrentResult()

getCompletionHandler

public final CompletionHandler getCompletionHandler()

checkRecycled

protected final void checkRecycled()


Copyright © 2011 Oracle Corpration. All Rights Reserved.