|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectnet.rubyeye.xmemcached.buffer.CachedBufferAllocator
@Deprecated public class CachedBufferAllocator
Cached IoBuffer allocator,cached buffer in ThreadLocal.
| 嵌套类摘要 | |
|---|---|
class |
CachedBufferAllocator.CachedIoBuffer
已过时。 |
| 构造方法摘要 | |
|---|---|
CachedBufferAllocator()
已过时。 Creates a new instance with the default parameters (#DEFAULT_MAX_POOL_SIZE and #DEFAULT_MAX_CACHED_BUFFER_SIZE). |
|
CachedBufferAllocator(int maxPoolSize,
int maxCachedBufferSize)
已过时。 Creates a new instance. |
|
| 方法摘要 | |
|---|---|
IoBuffer |
allocate(int requestedCapacity)
已过时。 |
void |
dispose()
已过时。 |
int |
getMaxCachedBufferSize()
已过时。 |
int |
getMaxPoolSize()
已过时。 |
static BufferAllocator |
newInstance()
已过时。 |
static BufferAllocator |
newInstance(int maxPoolSize,
int maxCachedBufferSize)
已过时。 |
IoBuffer |
wrap(ByteBuffer nioBuffer)
已过时。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public CachedBufferAllocator()
public CachedBufferAllocator(int maxPoolSize,
int maxCachedBufferSize)
maxPoolSize - the maximum number of buffers with the same capacity per
thread. 0 disables this limitation.maxCachedBufferSize - the maximum capacity of a cached buffer. A buffer whose
capacity is bigger than this value is not pooled. 0
disables this limitation.| 方法详细信息 |
|---|
public int getMaxPoolSize()
public int getMaxCachedBufferSize()
public final IoBuffer allocate(int requestedCapacity)
BufferAllocator 中的 allocatepublic final IoBuffer wrap(ByteBuffer nioBuffer)
BufferAllocator 中的 wrappublic void dispose()
BufferAllocator 中的 disposepublic static BufferAllocator newInstance()
public static BufferAllocator newInstance(int maxPoolSize,
int maxCachedBufferSize)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||