Class SocketSendBufferPool
java.lang.Object
org.jboss.netty.channel.socket.nio.SocketSendBufferPool
- All Implemented Interfaces:
ExternalResourceReleasable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
(package private) final class
(package private) static class
(package private) final class
private static final class
private final class
(package private) static interface
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final SocketSendBufferPool.SendBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) SocketSendBufferPool.SendBuffer
private SocketSendBufferPool.SendBuffer
acquire
(ChannelBuffer src) private SocketSendBufferPool.SendBuffer
acquire
(FileRegion src) private static int
align
(int pos) void
Releases the external resources that this object depends on.
-
Field Details
-
EMPTY_BUFFER
-
DEFAULT_PREALLOCATION_SIZE
private static final int DEFAULT_PREALLOCATION_SIZE- See Also:
-
ALIGN_SHIFT
private static final int ALIGN_SHIFT- See Also:
-
ALIGN_MASK
private static final int ALIGN_MASK- See Also:
-
poolHead
-
current
-
-
Constructor Details
-
SocketSendBufferPool
SocketSendBufferPool()
-
-
Method Details
-
acquire
-
acquire
-
acquire
-
getPreallocation
-
getPreallocation0
-
align
private static int align(int pos) -
releaseExternalResources
public void releaseExternalResources()Description copied from interface:ExternalResourceReleasable
Releases the external resources that this object depends on. You should not call this method if the external resources (e.g. thread pool) are in use by other objects.- Specified by:
releaseExternalResources
in interfaceExternalResourceReleasable
-