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

For more information, please explore the Attic.

public class

OffHeapStore

extends Object
java.lang.Object
   ↳ net.sf.ehcache.store.offheap.OffHeapStore

Class Overview

This class is simply a connector class into the EHCache for OffHeap. Until the issue (https://jira.terracotta.org/jira/browse/EHC-940) is fixed we need to use same package and class name as in ehcache

Summary

Public Constructors
OffHeapStore()
Public Methods
static Store create(Ehcache cache, String diskStorePath, Pool<PoolableStore> onHeapPool, Pool<PoolableStore> onDiskPool)
static Store create(Ehcache cache, String diskStorePath)
Creates a persitent-to-disk store for the given cache, using the given disk path.
static DirectMemoryStore createOffHeapStore(Ehcache cache)
do not use directly as can change
static Pool<PoolableStore> getOffHeapPool(CacheManager manager)
do not use directly as can change
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OffHeapStore ()

Public Methods

public static Store create (Ehcache cache, String diskStorePath, Pool<PoolableStore> onHeapPool, Pool<PoolableStore> onDiskPool)

public static Store create (Ehcache cache, String diskStorePath)

Creates a persitent-to-disk store for the given cache, using the given disk path. Heap and disk usage are not tracked by the returned store.

Parameters
cache cache that fronts this store
diskStorePath disk path to store data in
Returns
  • a fully initialized store

public static DirectMemoryStore createOffHeapStore (Ehcache cache)

do not use directly as can change

public static Pool<PoolableStore> getOffHeapPool (CacheManager manager)

do not use directly as can change