org.apache.directmemory.memory.allocator
Class AbstractByteBufferAllocator
java.lang.Object
org.apache.directmemory.memory.allocator.AbstractByteBufferAllocator
- All Implemented Interfaces:
- Closeable, ByteBufferAllocator
- Direct Known Subclasses:
- FixedSizeByteBufferAllocatorImpl, MergingByteBufferAllocatorImpl, SlabByteBufferAllocatorImpl
public abstract class AbstractByteBufferAllocator
- extends Object
- implements ByteBufferAllocator
|
Field Summary |
protected org.slf4j.Logger |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.slf4j.Logger logger
getNumber
public int getNumber()
- Specified by:
getNumber in interface ByteBufferAllocator
- Returns:
- the internal identifier of the
ByteBufferAllocator
getLogger
protected final org.slf4j.Logger getLogger()
isClosed
protected final boolean isClosed()
setClosed
protected final void setClosed(boolean closed)
getHash
protected static Integer getHash(ByteBuffer buffer)
Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.