|
||||||||||
| 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, retuned by Readable.
| Constructor Summary | |
|---|---|
ReadResult(Connection connection)
|
|
ReadResult(Connection connection,
K message,
L srcAddress,
int readSize)
|
|
| Method Summary | |
|---|---|
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 |
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 |
|---|
public ReadResult(Connection connection)
public ReadResult(Connection connection,
K message,
L srcAddress,
int readSize)
| Method Detail |
|---|
public Connection getConnection()
Connection data were read from.
getConnection in interface ResultConnection data were read from.public K getMessage()
public void setMessage(K message)
message - the message, which was read.public L getSrcAddress()
public void setSrcAddress(L srcAddress)
srcAddress - the source address, the message was read from.public int getReadSize()
public void setReadSize(int readSize)
readSize - the number of bytes, which were read.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||