Class BufferPool
java.lang.Object
org.apache.catalina.tribes.io.BufferPool
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
protected static BufferPool
protected int
protected final ConcurrentLinkedQueue
<XByteBuffer> protected final AtomicInteger
protected static final StringManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
getBuffer
(int minSize, boolean discard) static BufferPool
int
void
returnBuffer
(XByteBuffer buffer) void
setMaxSize
(int bytes)
-
Field Details
-
DEFAULT_POOL_SIZE
public static final int DEFAULT_POOL_SIZE -
sm
-
instance
-
maxSize
protected int maxSize -
size
-
queue
-
-
Method Details
-
getBufferPool
-
getBuffer
-
returnBuffer
-
clear
public void clear() -
setMaxSize
public void setMaxSize(int bytes) -
getMaxSize
public int getMaxSize()
-