2015/07/26 - Apache DirectMemory has been retired.

For more information, please explore the Attic.

public class

DirectMemoryCache

extends Object
java.lang.Object
   ↳ org.apache.directmemory.ehcache.DirectMemoryCache<K, V>

Summary

Public Constructors
DirectMemoryCache(int numberOfBuffers, int size, int initialCapacity, int concurrencyLevel)
DirectMemoryCache(int numberOfBuffers, int size)
Public Methods
Pointer<V> allocate(K key, Class<V> type, int size)
long capacityInBytes()
void clear()
void collectAll()
void collectExpired()
void collectLFU()
boolean containsKey(K key)
void dump()
void free(K key)
void free(Pointer<V> pointer)
Set<K> getKeys()
MemoryManagerService<V> getMemoryManager()
Pointer<V> getPointer(K key)
Serializer getSerializer()
Pointer<V> put(K key, V value, int expiresIn)
Pointer<V> put(K key, V value)
Pointer<V> putByteArray(K key, byte[] payload, int expiresIn)
Pointer<V> putByteArray(K key, byte[] payload)
V retrieve(K key)
byte[] retrieveByteArray(K key)
void scheduleDisposalEvery(long l)
long size()
long sizeInBytes()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DirectMemoryCache (int numberOfBuffers, int size, int initialCapacity, int concurrencyLevel)

public DirectMemoryCache (int numberOfBuffers, int size)

Public Methods

public Pointer<V> allocate (K key, Class<V> type, int size)

public long capacityInBytes ()

public void clear ()

public void collectAll ()

public void collectExpired ()

public void collectLFU ()

public boolean containsKey (K key)

public void dump ()

public void free (K key)

public void free (Pointer<V> pointer)

public Set<K> getKeys ()

public MemoryManagerService<V> getMemoryManager ()

public Pointer<V> getPointer (K key)

public Serializer getSerializer ()

public Pointer<V> put (K key, V value, int expiresIn)

public Pointer<V> put (K key, V value)

public Pointer<V> putByteArray (K key, byte[] payload, int expiresIn)

public Pointer<V> putByteArray (K key, byte[] payload)

public V retrieve (K key)

public byte[] retrieveByteArray (K key)

public void scheduleDisposalEvery (long l)

public long size ()

public long sizeInBytes ()