final class SocketSendBufferPool extends java.lang.Object implements ExternalResourceReleasable
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
SocketSendBufferPool.EmptySendBuffer |
(package private) class |
SocketSendBufferPool.FileSendBuffer |
(package private) static class |
SocketSendBufferPool.GatheringSendBuffer |
(package private) class |
SocketSendBufferPool.PooledSendBuffer |
private static class |
SocketSendBufferPool.Preallocation |
private class |
SocketSendBufferPool.PreallocationRef |
(package private) static interface |
SocketSendBufferPool.SendBuffer |
(package private) static class |
SocketSendBufferPool.UnpooledSendBuffer |
| Modifier and Type | Field and Description |
|---|---|
private static int |
ALIGN_MASK |
private static int |
ALIGN_SHIFT |
private SocketSendBufferPool.Preallocation |
current |
private static int |
DEFAULT_PREALLOCATION_SIZE |
private static SocketSendBufferPool.SendBuffer |
EMPTY_BUFFER |
private SocketSendBufferPool.PreallocationRef |
poolHead |
| Constructor and Description |
|---|
SocketSendBufferPool() |
| Modifier and Type | Method and Description |
|---|---|
private SocketSendBufferPool.SendBuffer |
acquire(ChannelBuffer src) |
private SocketSendBufferPool.SendBuffer |
acquire(FileRegion src) |
(package private) SocketSendBufferPool.SendBuffer |
acquire(java.lang.Object message) |
private static int |
align(int pos) |
private SocketSendBufferPool.Preallocation |
getPreallocation() |
private SocketSendBufferPool.Preallocation |
getPreallocation0() |
void |
releaseExternalResources()
Releases the external resources that this object depends on.
|
private static final SocketSendBufferPool.SendBuffer EMPTY_BUFFER
private static final int DEFAULT_PREALLOCATION_SIZE
private static final int ALIGN_SHIFT
private static final int ALIGN_MASK
private SocketSendBufferPool.PreallocationRef poolHead
private SocketSendBufferPool.Preallocation current
SocketSendBufferPool.SendBuffer acquire(java.lang.Object message)
private SocketSendBufferPool.SendBuffer acquire(FileRegion src)
private SocketSendBufferPool.SendBuffer acquire(ChannelBuffer src)
private SocketSendBufferPool.Preallocation getPreallocation()
private SocketSendBufferPool.Preallocation getPreallocation0()
private static int align(int pos)
public void releaseExternalResources()
ExternalResourceReleasablereleaseExternalResources in interface ExternalResourceReleasable