| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final WriteHandleFactory. | newHandle(Channel
the channel)Channel for which the WriteHandle is used.Implements io. Channel.
|
| protected MaxMessagesWriteHandleFactory. |
| maxMessagesPerWrite | back to summary |
|---|---|
| private final int maxMessagesPerWrite | |
| MaxMessagesWriteHandleFactory | back to summary |
|---|---|
| public MaxMessagesWriteHandleFactory(int maxMessagesPerWrite) | |
| newHandle | back to summary |
|---|---|
| public final WriteHandleFactory. Implements io. Doc from io. Creates a new handle for the given
| |
| newHandle | back to summary |
|---|---|
| protected MaxMessagesWriteHandleFactory. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | lastWrite(long
The number of bytes the write operation did attempt to write. attemptedBytesWrite, long The number of bytes from the previous write operation. This may be negative if a
write error occurs. actualBytesWrite, int The number of messages written. numMessagesWrite)Implements io. WriteHandle of the last write operation and its result.
|
| public void | writeComplete()
Implements io. |
| maxMessagesPerWrite | back to summary |
|---|---|
| private final int maxMessagesPerWrite | |
| totalNumMessages | back to summary |
|---|---|
| private int totalNumMessages | |
| MaxMessagesWriteHandle | back to summary |
|---|---|
| protected MaxMessagesWriteHandle(int maxMessagesPerWrite) | |
| lastWrite | back to summary |
|---|---|
| public boolean lastWrite(long attemptedBytesWrite, long actualBytesWrite, int numMessagesWrite) Implements io. Doc from io. Notify the
| |
| writeComplete | back to summary |
|---|---|
| public void writeComplete() Implements io. Doc from io. Method that must be called once the write loop was completed.
| |