@Deprecated public class CachedBufferAllocator extends Object implements BufferAllocator
| 限定符和类型 | 类和说明 |
|---|---|
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)
已过时。
|
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)
allocate 在接口中 BufferAllocatorpublic final IoBuffer wrap(ByteBuffer nioBuffer)
wrap 在接口中 BufferAllocatorpublic void dispose()
dispose 在接口中 BufferAllocatorpublic static BufferAllocator newInstance()
public static BufferAllocator newInstance(int maxPoolSize, int maxCachedBufferSize)
Copyright © 2013. All Rights Reserved.