org.glassfish.grizzly.asyncqueue
Class AsyncWriteQueueRecord
java.lang.Object
org.glassfish.grizzly.asyncqueue.AsyncQueueRecord<WriteResult>
org.glassfish.grizzly.asyncqueue.AsyncWriteQueueRecord
- All Implemented Interfaces:
- Cacheable
public class AsyncWriteQueueRecord
- extends AsyncQueueRecord<WriteResult>
AsyncQueue write element unit
- Author:
- Alexey Stashok
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncWriteQueueRecord
protected AsyncWriteQueueRecord(Connection connection,
WritableMessage message,
WriteResult currentResult,
CompletionHandler completionHandler,
java.lang.Object dstAddress,
PushBackHandler pushBackHandler,
boolean isEmptyRecord)
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.