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

For more information, please explore the Attic.

public class

OffHeapCache

extends ForwardingCache.SimpleForwardingCache<K, V>
implements RemovalListener<K, V>
java.lang.Object
   ↳ com.google.common.collect.ForwardingObject
     ↳ com.google.common.cache.ForwardingCache<K, V>
       ↳ com.google.common.cache.ForwardingCache.SimpleForwardingCache<K, V>
         ↳ org.apache.directmemory.guava.OffHeapCache<K, V>

Summary

Public Constructors
OffHeapCache(CacheService<K, V> cacheService, Cache<K, V> primaryCache, ForwardingListener<K, V> listener)
Public Methods
V get(K key, Callable<? extends V> valueLoader)
ImmutableMap<K, V> getAllPresent(Iterable<?> keys)
V getIfPresent(Object key)
void invalidate(Object key)
void invalidateAll(Iterable<?> keys)
void invalidateAll()
CacheStats offHeapStats()
void onRemoval(RemovalNotification<K, V> notification)
Protected Methods
V retrieve(Object key)
[Expand]
Inherited Methods
From class com.google.common.cache.ForwardingCache.SimpleForwardingCache
From class com.google.common.cache.ForwardingCache
From class com.google.common.collect.ForwardingObject
From class java.lang.Object
From interface com.google.common.cache.Cache
From interface com.google.common.cache.RemovalListener

Public Constructors

public OffHeapCache (CacheService<K, V> cacheService, Cache<K, V> primaryCache, ForwardingListener<K, V> listener)

Public Methods

public V get (K key, Callable<? extends V> valueLoader)

public ImmutableMap<K, V> getAllPresent (Iterable<?> keys)

public V getIfPresent (Object key)

public void invalidate (Object key)

public void invalidateAll (Iterable<?> keys)

public void invalidateAll ()

public CacheStats offHeapStats ()

public void onRemoval (RemovalNotification<K, V> notification)

Protected Methods

protected V retrieve (Object key)