| Modifier and Type | Class and Description |
|---|---|
| public static interface | ReadHandleFactory.
Handle which allows to customize how data / messages are read. |
| Modifier and Type | Method and Description |
|---|---|
| public ReadHandleFactory. | newHandle(Channel
the channel)Channel for which the ReadHandle is used.Creates a new handle for the given |
| newHandle | back to summary |
|---|---|
| public ReadHandleFactory. Creates a new handle for the given
| |
| Modifier and Type | Method and Description |
|---|---|
| public int | estimatedBufferCapacity()
Guess the capacity for the next receive buffer that is probably large enough to read all inbound data and small enough not to waste its space. |
| public boolean | Returns: true if the read loop should continue reading, false otherwise.The number of bytes the read operation did attempt to read. attemptedBytesRead, int The number of bytes from the previous read operation. This may be negative if a
read error occurs. actualBytesRead, int The number of messages read. numMessagesRead)Notify the |
| public void |
| estimatedBufferCapacity | back to summary |
|---|---|
| public int estimatedBufferCapacity() Guess the capacity for the next receive buffer that is probably large enough to read all inbound data and small enough not to waste its space. | |
| lastRead | back to summary |
|---|---|
| public boolean lastRead(int attemptedBytesRead, int actualBytesRead, int numMessagesRead) Notify the
| |
| readComplete | back to summary |
|---|---|
| public void readComplete() Method that must be called once the read loop was completed. | |