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 classprivate static final classprivate final class(package private) static interface(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final SocketSendBufferPool.SendBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) SocketSendBufferPool.SendBufferprivate SocketSendBufferPool.SendBufferacquire(ChannelBuffer src) private SocketSendBufferPool.SendBufferacquire(FileRegion src) private static intalign(int pos) voidReleases 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:ExternalResourceReleasableReleases 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:
releaseExternalResourcesin interfaceExternalResourceReleasable
-