|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.WriteResult<K,L>
public final class WriteResult<K,L>
Result of write operation, returned by Writable.
| Method Summary | ||
|---|---|---|
static
|
create(Connection connection)
|
|
static
|
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. |
|
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 |
setMessage(K message)
Set the message, which was read. |
|
void |
setWrittenSize(long writeSize)
Set the number of bytes, which were written. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 ResultConnection 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 void setDstAddress(L dstAddress)
dstAddress - 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.public void recycle()
recycle in interface Cacheable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||