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  boolean isRecycled
           
protected  java.lang.Object message
           
protected  DebugPoint recycleTrack
           
 
Constructor Summary
AsyncQueueRecord(Connection connection, java.lang.Object message, R currentResult, CompletionHandler completionHandler)
           
 
Method Summary
protected  void checkRecycled()
           
 Connection getConnection()
           
 R getCurrentResult()
           
<T> T
getMessage()
           
 void notifyFailure(java.lang.Throwable e)
           
 void notifyIncomplete()
           
protected  void set(Connection connection, java.lang.Object message, R currentResult, CompletionHandler completionHandler)
           
 void setMessage(java.lang.Object 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 java.lang.Object message

currentResult

protected R currentResult

completionHandler

protected CompletionHandler completionHandler

isRecycled

protected boolean isRecycled

recycleTrack

protected DebugPoint recycleTrack
Constructor Detail

AsyncQueueRecord

public AsyncQueueRecord(Connection connection,
                        java.lang.Object message,
                        R currentResult,
                        CompletionHandler completionHandler)
Method Detail

set

protected final void set(Connection connection,
                         java.lang.Object message,
                         R currentResult,
                         CompletionHandler completionHandler)

getConnection

public Connection getConnection()

getMessage

public final <T> T getMessage()

setMessage

public final void setMessage(java.lang.Object message)

getCurrentResult

public final R getCurrentResult()

notifyFailure

public void notifyFailure(java.lang.Throwable e)

notifyIncomplete

public final void notifyIncomplete()

checkRecycled

protected final void checkRecycled()


Copyright © 2012 Oracle Corporation. All Rights Reserved.