public class AsyncWriteQueueRecord extends AsyncQueueRecord<WriteResult>
AsyncQueue
write element unitcompletionHandler, connection, isRecycled, message, recycleTrack
Modifier | Constructor and Description |
---|---|
protected |
AsyncWriteQueueRecord(Connection connection,
WritableMessage message,
CompletionHandler completionHandler,
Object dstAddress,
PushBackHandler pushBackHandler,
boolean isEmptyRecord) |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeAggregated() |
static AsyncWriteQueueRecord |
create(Connection connection,
WritableMessage message,
CompletionHandler completionHandler,
Object dstAddress,
PushBackHandler pushbackHandler,
boolean isEmptyRecord) |
WriteResult |
getCurrentResult()
Returns the current record result object.
|
Object |
getDstAddress() |
long |
getInitialMessageSize() |
PushBackHandler |
getPushBackHandler()
Deprecated.
|
WritableMessage |
getWritableMessage() |
boolean |
isEmptyRecord() |
boolean |
isFinished() |
void |
notifyCompleteAndRecycle() |
void |
recycle() |
long |
remaining() |
protected void |
reset() |
protected void |
set(Connection connection,
WritableMessage message,
CompletionHandler completionHandler,
Object dstAddress,
PushBackHandler pushBackHandler,
boolean isEmptyRecord) |
void |
setEmptyRecord(boolean isEmptyRecord) |
checkRecycled, getConnection, getMessage, notifyFailure, notifyIncomplete, set, setMessage
protected AsyncWriteQueueRecord(Connection connection, WritableMessage message, CompletionHandler completionHandler, Object dstAddress, PushBackHandler pushBackHandler, boolean isEmptyRecord)
public static AsyncWriteQueueRecord create(Connection connection, WritableMessage message, CompletionHandler completionHandler, Object dstAddress, PushBackHandler pushbackHandler, boolean isEmptyRecord)
protected void set(Connection connection, WritableMessage message, CompletionHandler completionHandler, Object dstAddress, PushBackHandler pushBackHandler, boolean isEmptyRecord)
public final Object getDstAddress()
public final WritableMessage getWritableMessage()
public boolean isEmptyRecord()
public void setEmptyRecord(boolean isEmptyRecord)
public long getInitialMessageSize()
public long remaining()
public WriteResult getCurrentResult()
AsyncQueueRecord
getCurrentResult
in class AsyncQueueRecord<WriteResult>
@Deprecated public PushBackHandler getPushBackHandler()
public boolean canBeAggregated()
public void notifyCompleteAndRecycle()
public boolean isFinished()
protected final void reset()
public void recycle()
Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.