MaxMessagesReadHandleFactory which always try to allocate buffers as big as kqueue tells us
in terms of pending bytes to read.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MaxMessagesReadHandleFactory. | newMaxMessageHandle(int
the maximum number of messages to read per read loop. maxMessagesPerRead)Implements abstract io. MaxMessageReadHandle to use.
|
| KQueueReadHandleFactory | back to summary |
|---|---|
| public KQueueReadHandleFactory() | |
| KQueueReadHandleFactory | back to summary |
|---|---|
| public KQueueReadHandleFactory(int maxMessagesPerRead) | |
| newMaxMessageHandle | back to summary |
|---|---|
| public MaxMessagesReadHandleFactory. Implements abstract io. Doc from io. Creates a new
| |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public int | estimatedBufferCapacity()
Implements io. |
| capacity | back to summary |
|---|---|
| private int capacity | |
| KQueueReadHandle | back to summary |
|---|---|
| pack-priv KQueueReadHandle(int maxMessagesPerRead) | |
| bufferCapacity | back to summary |
|---|---|
| pack-priv void bufferCapacity(int capacity) | |
| estimatedBufferCapacity | back to summary |
|---|---|
| public int estimatedBufferCapacity() Implements io. Doc from io. 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.
| |