public class BufferPool extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BufferPool.Buffer |
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
EMPTY_BYTE_ARRAY |
static int |
L_BUFFER_SIZE |
protected static Queue<byte[]> |
L_BUFFERS |
static int |
M_BUFFER_SIZE |
protected static int |
M_BUFFER_TARGET_COUNT |
protected static Queue<byte[]> |
M_BUFFERS |
protected static int |
MAX_ALLOCATION |
static int |
S_BUFFER_SIZE |
protected static int |
S_BUFFER_TARGET_COUNT |
protected static Queue<byte[]> |
S_BUFFERS |
static int |
T_BUFFER_SIZE |
protected static int |
T_BUFFER_TARGET_COUNT |
protected static Queue<byte[]> |
T_BUFFERS |
protected static Semaphore |
TOTAL_ALLOCATED |
| Modifier and Type | Method and Description |
|---|---|
static int |
availableLargeBufferCount() |
static int |
availableMediumBufferCount() |
static int |
availableSmallBufferCount() |
static int |
availableTinyBufferCount() |
static int |
getAvailableAllocation() |
static int |
getTotalAllocated() |
static int |
getWaitingToAllocateThreadCount() |
static BufferPool.Buffer |
needBuffer(int minSize) |
public static final byte[] EMPTY_BYTE_ARRAY
public static final int T_BUFFER_SIZE
public static final int S_BUFFER_SIZE
public static final int M_BUFFER_SIZE
public static final int L_BUFFER_SIZE
protected static final int T_BUFFER_TARGET_COUNT
protected static final int S_BUFFER_TARGET_COUNT
protected static final int M_BUFFER_TARGET_COUNT
protected static final int MAX_ALLOCATION
protected static final Semaphore TOTAL_ALLOCATED
protected static final Queue<byte[]> T_BUFFERS
protected static final Queue<byte[]> S_BUFFERS
protected static final Queue<byte[]> M_BUFFERS
protected static final Queue<byte[]> L_BUFFERS
public static int getAvailableAllocation()
public static int getTotalAllocated()
public static int getWaitingToAllocateThreadCount()
public static int availableTinyBufferCount()
public static int availableSmallBufferCount()
public static int availableMediumBufferCount()
public static int availableLargeBufferCount()
public static BufferPool.Buffer needBuffer(int minSize)
Copyright © 2024 com.github.files-com. All rights reserved.