2015/07/26 - Apache DirectMemory has been retired.
For more information, please explore the
Attic
.
Apache DirectMemory
Package Index
|
Class Index
net.sf.ehcache
net.sf.ehcache.store.offheap
org.apache.directmemory
org.apache.directmemory.cache
org.apache.directmemory.conf
org.apache.directmemory.ehcache
org.apache.directmemory.guava
org.apache.directmemory.measures
org.apache.directmemory.memory
org.apache.directmemory.memory.allocator
org.apache.directmemory.memory.buffer
org.apache.directmemory.serialization
org.apache.directmemory.serialization.kryo
org.apache.directmemory.serialization.msgpack
org.apache.directmemory.serialization.protobuf
org.apache.directmemory.serialization.protostuff
org.apache.directmemory.server.client
org.apache.directmemory.server.client.providers.asynchttpclient
org.apache.directmemory.server.client.providers.httpclient
org.apache.directmemory.server.commons
org.apache.directmemory.server.services
org.apache.directmemory.solr
org.apache.directmemory.test
org.apache.directmemory.utils
Interfaces
Allocator
Classes
AbstractByteBufferAllocator
DirectByteBufferUtils
FixedSizeByteBufferAllocatorImpl
FixedSizeUnsafeAllocator
LazyUnsafeAllocator
MergingByteBufferAllocator
SlabByteBufferAllocator
UnsafeUtils
Package Index
|
Class Index
Summary:
Fields
|
Methods
|
Protected Methods
|
Inherited Methods
|
[Expand All]
public abstract class
AbstractByteBufferAllocator
extends
Object
implements
Allocator
java.lang.Object
↳
org.apache.directmemory.memory.allocator.AbstractByteBufferAllocator
Known Direct Subclasses
FixedSizeByteBufferAllocatorImpl
,
MergingByteBufferAllocator
,
SlabByteBufferAllocator
FixedSizeByteBufferAllocatorImpl
Allocator
implementation that instantiate ByteBuffers of fixed size, called slices.
MergingByteBufferAllocator
Allocator
implementation with ByteBuffer merging capabilities.
SlabByteBufferAllocator
Allocator
implementation that uses
FixedSizeByteBufferAllocatorImpl
of different size to allocate best matching's size ByteBuffer
Summary
Fields
protected final Logger
logger
Public Methods
int
getNumber
()
Protected Methods
static
Integer
getHash
(ByteBuffer buffer)
final Logger
getLogger
()
final boolean
isClosed
()
final void
setClosed
(boolean closed)
[Expand]
Inherited Methods
From class
java.lang.Object
Object
clone
()
boolean
equals
(
Object
arg0)
void
finalize
()
final
Class
<?>
getClass
()
int
hashCode
()
final void
notify
()
final void
notifyAll
()
String
toString
()
final void
wait
()
final void
wait
(long arg0, int arg1)
final void
wait
(long arg0)
From interface
java.io.Closeable
abstract void
close
()
From interface
org.apache.directmemory.memory.allocator.Allocator
abstract
MemoryBuffer
allocate
(int size)
Allocates and returns a
MemoryBuffer
with
capacity()
set to the given size.
abstract void
clear
()
Clear all allocated
MemoryBuffer
, resulting in a empty and ready to deserve
Allocator
abstract void
free
(
MemoryBuffer
memoryBuffer)
Returns the given
MemoryBuffer
making it available for a future usage.
abstract int
getCapacity
()
abstract int
getNumber
()
Fields
protected final Logger
logger
Public Methods
public int
getNumber
()
Protected Methods
protected static
Integer
getHash
(ByteBuffer buffer)
protected final Logger
getLogger
()
protected final boolean
isClosed
()
protected final void
setClosed
(boolean closed)