| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected MaxMessagesWriteHandleFactory. | newHandle(Channel channel, int maxMessagesPerWrite)
Overrides io. |
| MAX_BYTES_PER_GATHERING_WRITE_ATTEMPTED_LOW_THRESHOLD | back to summary |
|---|---|
| private static final int MAX_BYTES_PER_GATHERING_WRITE_ATTEMPTED_LOW_THRESHOLD | |
| maxBytesPerGatheringWrite | back to summary |
|---|---|
| private final long maxBytesPerGatheringWrite | |
| SocketChannelWriteHandleFactory | back to summary |
|---|---|
| public SocketChannelWriteHandleFactory(int maxMessagesPerWrite) | |
| SocketChannelWriteHandleFactory | back to summary |
|---|---|
| public SocketChannelWriteHandleFactory(int maxMessagesPerWrite, long maxBytesPerGatheringWrite) | |
| newHandle | back to summary |
|---|---|
| protected MaxMessagesWriteHandleFactory. Overrides io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private static long | |
| public long | estimatedMaxBytesPerGatheringWrite()
Overrides default io. |
| 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)Overrides io. Implements io. WriteHandle of the last write operation and its result.
|
| calculatedMaxBytesPerGatheringWrite | back to summary |
|---|---|
| private long calculatedMaxBytesPerGatheringWrite | |
| maxBytesPerGatheringWrite | back to summary |
|---|---|
| private final long maxBytesPerGatheringWrite | |
| SndBufferWriteHandle | back to summary |
|---|---|
| pack-priv SndBufferWriteHandle(Channel channel, int maxMessagesPerWrite, long maxBytesPerGatheringWrite) | |
| adjustMaxBytesPerGatheringWrite | back to summary |
|---|---|
| private void adjustMaxBytesPerGatheringWrite(long attempted, long written, long oldMaxBytesPerGatheringWrite) | |
| calculateMaxBytesPerGatheringWrite | back to summary |
|---|---|
| private static long calculateMaxBytesPerGatheringWrite(Channel channel, long maxBytesPerGatheringWrite) | |
| estimatedMaxBytesPerGatheringWrite | back to summary |
|---|---|
| public long estimatedMaxBytesPerGatheringWrite() Overrides default io. Doc from io. Estimate the maximum number of bytes that can be written with one gathering write operation.
| |
| lastWrite | back to summary |
|---|---|
| public boolean lastWrite(long attemptedBytesWrite, long actualBytesWrite, int numMessagesWrite) Overrides io. Implements io. Doc from io. Notify the
| |