Class AsyncQueueRecord<R>

java.lang.Object
org.glassfish.grizzly.asyncqueue.AsyncQueueRecord<R>
Type Parameters:
R - the result type
All Implemented Interfaces:
Cacheable
Direct Known Subclasses:
AsyncReadQueueRecord, AsyncWriteQueueRecord

public abstract class AsyncQueueRecord<R> extends Object implements Cacheable
AsyncQueue element unit
Author:
Alexey Stashok
  • Field Details

    • connection

      protected Connection connection
    • message

      protected Object message
    • completionHandler

      protected CompletionHandler completionHandler
    • isRecycled

      protected boolean isRecycled
    • recycleTrack

      protected DebugPoint recycleTrack
  • Constructor Details

    • AsyncQueueRecord

      protected AsyncQueueRecord()
    • AsyncQueueRecord

      public AsyncQueueRecord(Connection connection, Object message, CompletionHandler completionHandler)
  • Method Details

    • set

      protected final void set(Connection connection, Object message, CompletionHandler completionHandler)
    • getConnection

      public Connection getConnection()
    • getMessage

      public final <T> T getMessage()
    • setMessage

      public final void setMessage(Object message)
    • getCurrentResult

      public abstract R getCurrentResult()
      Returns the current record result object.
      Returns:
      the current record result object
    • notifyFailure

      public void notifyFailure(Throwable e)
    • notifyIncomplete

      public final void notifyIncomplete()
    • checkRecycled

      protected final void checkRecycled()