net.rubyeye.xmemcached.buffer
类 CachedBufferAllocator

java.lang.Object
  继承者 net.rubyeye.xmemcached.buffer.CachedBufferAllocator
所有已实现的接口:
BufferAllocator

已过时。

@Deprecated
public class CachedBufferAllocator
extends Object
implements BufferAllocator

Cached IoBuffer allocator,cached buffer in ThreadLocal.

作者:
dennis

嵌套类摘要
 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
 

构造方法详细信息

CachedBufferAllocator

public CachedBufferAllocator()
已过时。 
Creates a new instance with the default parameters (#DEFAULT_MAX_POOL_SIZE and #DEFAULT_MAX_CACHED_BUFFER_SIZE).


CachedBufferAllocator

public CachedBufferAllocator(int maxPoolSize,
                             int maxCachedBufferSize)
已过时。 
Creates a new instance.

参数:
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.
方法详细信息

getMaxPoolSize

public int getMaxPoolSize()
已过时。 

getMaxCachedBufferSize

public int getMaxCachedBufferSize()
已过时。 

allocate

public final IoBuffer allocate(int requestedCapacity)
已过时。 
指定者:
接口 BufferAllocator 中的 allocate

wrap

public final IoBuffer wrap(ByteBuffer nioBuffer)
已过时。 
指定者:
接口 BufferAllocator 中的 wrap

dispose

public void dispose()
已过时。 
指定者:
接口 BufferAllocator 中的 dispose

newInstance

public static BufferAllocator newInstance()
已过时。 

newInstance

public static BufferAllocator newInstance(int maxPoolSize,
                                          int maxCachedBufferSize)
已过时。 


Copyright © 2013. All Rights Reserved.