|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.ReadResult<K,L>
public class ReadResult<K,L>
Result of read operation, returned by Readable.
| Constructor Summary | |
|---|---|
protected |
ReadResult(Connection connection)
|
protected |
ReadResult(Connection connection,
K message,
L srcAddress,
int readSize)
|
| Method Summary | ||
|---|---|---|
static
|
create(Connection connection)
|
|
static
|
create(Connection connection,
K message,
L srcAddress,
int readSize)
|
|
Connection |
getConnection()
Get the Connection data were read from. |
|
K |
getMessage()
Get the message, which was read. |
|
int |
getReadSize()
Get the number of bytes, which were read. |
|
L |
getSrcAddress()
Get the source address, the message was read from. |
|
void |
recycle()
|
|
void |
setMessage(K message)
Set the message, which was read. |
|
void |
setReadSize(int readSize)
Set the number of bytes, which were read. |
|
void |
setSrcAddress(L srcAddress)
Set the source address, the message was read from. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ReadResult(Connection connection)
protected ReadResult(Connection connection,
K message,
L srcAddress,
int readSize)
| Method Detail |
|---|
public static <K,L> ReadResult<K,L> create(Connection connection)
public static <K,L> ReadResult<K,L> create(Connection connection,
K message,
L srcAddress,
int readSize)
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 getSrcAddress()
public final void setSrcAddress(L srcAddress)
srcAddress - the source address, the message was read from.public final int getReadSize()
public final void setReadSize(int readSize)
readSize - the number of bytes, which were read.public void recycle()
recycle in interface Cacheable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||