| Modifier and Type | Class and Description |
|---|---|
| private static class | ByteBufferCollector.
Thread-local cache of |
| Modifier and Type | Field and Description |
|---|---|
| private ByteBufferCollector. | |
| private long | |
| private int | |
| private static final FastThreadLocal |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static ByteBuffer[] | |
| pack-priv int | nioBufferCount()
Returns the number of |
| pack-priv ByteBuffer[] | |
| pack-priv long | nioBufferSize()
Returns the number of bytes that can be written out of the |
| pack-priv void | prepare(int
The maximum amount of buffers that will be added to the return value. maxCount, long A hint toward the maximum number of bytes to include as part of the return value. Note that
this value maybe exceeded because we make a best effort to include at least 1
maxBytes)ByteBuffer in the return value to ensure write progress is made.Returns an array of direct NIO buffers if the currently pending messages are made of |
| pack-priv void | |
| public boolean | test(Object
the input argument msg)Implements java. |
| cache | back to summary |
|---|---|
| private ByteBufferCollector. | |
| maxBytes | back to summary |
|---|---|
| private long maxBytes | |
| maxCount | back to summary |
|---|---|
| private int maxCount | |
| NIO_BUFFERS | back to summary |
|---|---|
| private static final FastThreadLocal<ByteBufferCollector. | |
| ByteBufferCollector | back to summary |
|---|---|
| pack-priv ByteBufferCollector() | |
| expandNioBufferArray | back to summary |
|---|---|
| private static ByteBuffer[] expandNioBufferArray(ByteBuffer[] array, int neededSpace, int size) | |
| nioBufferCount | back to summary |
|---|---|
| pack-priv int nioBufferCount() Returns the number of | |
| nioBuffers | back to summary |
|---|---|
| pack-priv ByteBuffer[] nioBuffers() | |
| nioBufferSize | back to summary |
|---|---|
| pack-priv long nioBufferSize() Returns the number of bytes that can be written out of the | |
| prepare | back to summary |
|---|---|
| pack-priv void prepare(int maxCount, long maxBytes) Returns an array of direct NIO buffers if the currently pending messages are made of
| |
| reset | back to summary |
|---|---|
| pack-priv void reset() | |
| test | back to summary |
|---|---|
| public boolean test(Object msg) throws RuntimeException Implements java. Doc from java. Evaluates this predicate on the given argument. | |
ByteBuffer array, and processing meta-data.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv ByteBuffer[] | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| private |
| bufferCount | back to summary |
|---|---|
| pack-priv int bufferCount | |
| buffers | back to summary |
|---|---|
| pack-priv ByteBuffer[] buffers | |
| totalSize | back to summary |
|---|---|
| pack-priv long totalSize | |
| BufferCache | back to summary |
|---|---|
| private BufferCache() | |