Modifier and Type | Method and Description |
---|---|
static <K,L> WriteResult<K,L> |
create(Connection connection) |
static <K,L> WriteResult<K,L> |
create(Connection connection,
K message,
L dstAddress,
int writeSize) |
Connection |
getConnection()
Get the
Connection data were read from. |
L |
getDstAddress()
Get the destination address, the message was written to.
|
Holder<L> |
getDstAddressHolder()
Get the destination address, the message was written to.
|
K |
getMessage()
Get the message, which was read.
|
long |
getWrittenSize()
Get the number of bytes, which were written.
|
void |
recycle() |
void |
setDstAddress(L dstAddress)
Set the destination address, the message was written to.
|
void |
setDstAddressHolder(Holder<L> dstAddressHolder)
Set the destination address, the message was written to.
|
void |
setMessage(K message)
Set the message, which was read.
|
void |
setWrittenSize(long writeSize)
Set the number of bytes, which were written.
|
public static <K,L> WriteResult<K,L> create(Connection connection)
public static <K,L> WriteResult<K,L> create(Connection connection, K message, L dstAddress, int writeSize)
public final Connection getConnection()
Connection
data were read from.getConnection
in interface Result
Connection
data were read from.public final K getMessage()
public final void setMessage(K message)
message
- the message, which was read.public final L getDstAddress()
public final Holder<L> getDstAddressHolder()
public final void setDstAddress(L dstAddress)
dstAddress
- the destination address, the message was written to.public final void setDstAddressHolder(Holder<L> dstAddressHolder)
dstAddressHolder
- the destination address, the message was written to.public final long getWrittenSize()
public final void setWrittenSize(long writeSize)
writeSize
- the number of bytes, which were written.Copyright © 2014 Oracle Corporation. All rights reserved.