org.glassfish.grizzly.asyncqueue
Class AsyncWriteQueueRecord

java.lang.Object
  extended by org.glassfish.grizzly.asyncqueue.AsyncQueueRecord<WriteResult>
      extended by org.glassfish.grizzly.asyncqueue.AsyncWriteQueueRecord
All Implemented Interfaces:
Cacheable

public class AsyncWriteQueueRecord
extends AsyncQueueRecord<WriteResult>

AsyncQueue write element unit

Author:
Alexey Stashok

Field Summary
 
Fields inherited from class org.glassfish.grizzly.asyncqueue.AsyncQueueRecord
completionHandler, connection, currentResult, isRecycled, message, recycleTrack
 
Constructor Summary
protected AsyncWriteQueueRecord(Connection connection, WritableMessage message, WriteResult currentResult, CompletionHandler completionHandler, java.lang.Object dstAddress, PushBackHandler pushBackHandler, boolean isEmptyRecord)
           
 
Method Summary
 boolean canBeAggregated()
           
static AsyncWriteQueueRecord create(Connection connection, WritableMessage message, WriteResult currentResult, CompletionHandler completionHandler, java.lang.Object dstAddress, PushBackHandler pushbackHandler, boolean isEmptyRecord)
           
 java.lang.Object getDstAddress()
           
 long getInitialMessageSize()
           
 int getMomentumQueueSize()
           
 PushBackHandler getPushBackHandler()
           
 WritableMessage getWritableMessage()
           
 boolean isChecked()
           
 boolean isEmptyRecord()
           
 boolean isFinished()
           
 void notifyCompleteAndRecycle()
           
 void recycle()
           
 long remaining()
           
protected  void reset()
           
protected  void set(Connection connection, WritableMessage message, WriteResult currentResult, CompletionHandler completionHandler, java.lang.Object dstAddress, PushBackHandler pushBackHandler, boolean isEmptyRecord)
           
 void setEmptyRecord(boolean isEmptyRecord)
           
 void setMomentumQueueSize(int momentumQueueSize)
           
 
Methods inherited from class org.glassfish.grizzly.asyncqueue.AsyncQueueRecord
checkRecycled, getConnection, getCurrentResult, getMessage, notifyFailure, notifyIncomplete, set, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncWriteQueueRecord

protected AsyncWriteQueueRecord(Connection connection,
                                WritableMessage message,
                                WriteResult currentResult,
                                CompletionHandler completionHandler,
                                java.lang.Object dstAddress,
                                PushBackHandler pushBackHandler,
                                boolean isEmptyRecord)
Method Detail

create

public static AsyncWriteQueueRecord create(Connection connection,
                                           WritableMessage message,
                                           WriteResult currentResult,
                                           CompletionHandler completionHandler,
                                           java.lang.Object dstAddress,
                                           PushBackHandler pushbackHandler,
                                           boolean isEmptyRecord)

set

protected void set(Connection connection,
                   WritableMessage message,
                   WriteResult currentResult,
                   CompletionHandler completionHandler,
                   java.lang.Object dstAddress,
                   PushBackHandler pushBackHandler,
                   boolean isEmptyRecord)

getDstAddress

public final java.lang.Object getDstAddress()

getWritableMessage

public final WritableMessage getWritableMessage()

isEmptyRecord

public boolean isEmptyRecord()

setEmptyRecord

public void setEmptyRecord(boolean isEmptyRecord)

getInitialMessageSize

public long getInitialMessageSize()

remaining

public long remaining()

getMomentumQueueSize

public int getMomentumQueueSize()

setMomentumQueueSize

public void setMomentumQueueSize(int momentumQueueSize)

isChecked

public boolean isChecked()

getPushBackHandler

public PushBackHandler getPushBackHandler()

canBeAggregated

public boolean canBeAggregated()

notifyCompleteAndRecycle

public void notifyCompleteAndRecycle()

isFinished

public boolean isFinished()

reset

protected final void reset()

recycle

public void recycle()


Copyright © 2012 Oracle Corporation. All Rights Reserved.