public static class Bytes.Pool extends RingBuffer<byte[]>
| 限定符和类型 | 字段和说明 |
|---|---|
static Bytes.Pool |
_1k
1k字节数组池
|
static Bytes.Pool |
_512
512字节数组池
|
static Bytes.Pool |
_8k
8k字节数组池
|
protected int |
m_Capacity |
m_EmtryCounter, m_FullCounter, m_HitCounter, m_IndexGet, m_IndexPut, m_ItemsPOLICY_CRITICAL, POLICY_IDLE, POLICY_LOW, POLICY_MAINTAIN, POLICY_MASK, POLICY_OPTIMIZE| 构造器和说明 |
|---|
Pool(int size,
int capacity)
构建池
|
protected int m_Capacity
public static Bytes.Pool _8k
public static Bytes.Pool _1k
public static Bytes.Pool _512
public int capacity()
protected byte[] onEmpty()
RingBufferonEmpty 在类中 RingBuffer<byte[]>public boolean offer(byte[] item)
RingBufferoffer 在类中 RingBuffer<byte[]>item - 要置入缓冲区的项RingBuffer.remove(),
RingBuffer.poll()Copyright © 2021. All rights reserved.