Package | Description |
---|---|
net.sf.ehcache |
This package contains the public API for using ehcache.
|
net.sf.ehcache.pool.impl |
This package contains implementations of the resource pooling interfaces.
|
net.sf.ehcache.store |
Store package.
|
net.sf.ehcache.store.disk |
This package contains the disk store.
|
Modifier and Type | Method and Description |
---|---|
Store |
FeaturesManager.createStore(Cache cache,
Pool<PoolableStore> onHeapPool,
Pool<PoolableStore> onDiskPool)
Create a store for the given cache.
|
Store |
FeaturesManager.createStore(Cache cache,
Pool<PoolableStore> onHeapPool,
Pool<PoolableStore> onDiskPool)
Create a store for the given cache.
|
Modifier and Type | Method and Description |
---|---|
PoolAccessor<PoolableStore> |
UnboundedPool.createPoolAccessor(PoolableStore store,
int maxDepth,
boolean abortWhenMaxDepthExceeded)
Return a PoolAccessor whose consumption is tracked by this pool, using a default SizeOf engine.
|
PoolEvictor<PoolableStore> |
UnboundedPool.getEvictor()
Return the pool evictor used by this pool.
|
Collection<PoolableStore> |
UnboundedPool.getPoolableStores()
Return the stores accessing this pool.
|
Modifier and Type | Method and Description |
---|---|
protected long |
BalancedAccessOnDiskPoolEvictor.byteSize(PoolableStore store)
Return the size in bytes of the supplied store.
|
protected long |
BalancedAccessOnHeapPoolEvictor.byteSize(PoolableStore store)
Return the size in bytes of the supplied store.
|
protected long |
BalancedAccessOnDiskPoolEvictor.countSize(PoolableStore store)
Return the number of mappings in the supplied store.
|
protected long |
BalancedAccessOnHeapPoolEvictor.countSize(PoolableStore store)
Return the number of mappings in the supplied store.
|
PoolAccessor<PoolableStore> |
UnboundedPool.createPoolAccessor(PoolableStore store,
int maxDepth,
boolean abortWhenMaxDepthExceeded)
Return a PoolAccessor whose consumption is tracked by this pool, using a default SizeOf engine.
|
PoolAccessor |
BoundedPool.createPoolAccessor(PoolableStore store,
SizeOfEngine sizeOfEngine)
Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
|
PoolAccessor |
StrictlyBoundedPool.createPoolAccessor(PoolableStore store,
SizeOfEngine sizeOfEngine)
Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
|
PoolAccessor |
UnboundedPool.createPoolAccessor(PoolableStore store,
SizeOfEngine sizeOfEngine)
Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
|
protected boolean |
FromLargestCacheOnHeapPoolEvictor.evict(int count,
long bytes,
PoolableStore largestPoolableStore)
Evict from a store for a chosen resource
|
protected abstract boolean |
AbstractFromLargestCachePoolEvictor.evict(int count,
long bytes,
PoolableStore poolableStore)
Evict from a store for a chosen resource
|
protected boolean |
FromLargestCacheOnDiskPoolEvictor.evict(int count,
long bytes,
PoolableStore largestPoolableStore)
Evict from a store for a chosen resource
|
protected boolean |
BalancedAccessOnDiskPoolEvictor.evict(PoolableStore store,
int count,
long size)
Evict the specified number of bytes or the hinted number of elements from the specified store
|
protected boolean |
BalancedAccessOnHeapPoolEvictor.evict(PoolableStore store,
int count,
long size)
Evict the specified number of bytes or the hinted number of elements from the specified store
|
protected long |
FromLargestCacheOnHeapPoolEvictor.getSizeInBytes(PoolableStore largestPoolableStore)
Get a store size in bytes for a chosen resource
|
protected abstract long |
AbstractFromLargestCachePoolEvictor.getSizeInBytes(PoolableStore poolableStore)
Get a store size in bytes for a chosen resource
|
protected long |
FromLargestCacheOnDiskPoolEvictor.getSizeInBytes(PoolableStore largestPoolableStore)
Get a store size in bytes for a chosen resource
|
protected float |
BalancedAccessOnDiskPoolEvictor.hitRate(PoolableStore store)
Return the hit rate for the supplied store.
|
protected float |
BalancedAccessOnHeapPoolEvictor.hitRate(PoolableStore store)
Return the hit rate for the supplied store.
|
protected float |
BalancedAccessOnDiskPoolEvictor.missRate(PoolableStore store)
Return the miss rate for the supplied store.
|
protected float |
BalancedAccessOnHeapPoolEvictor.missRate(PoolableStore store)
Return the miss rate for the supplied store.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractFromLargestCachePoolEvictor.freeSpace(Collection<PoolableStore> from,
long bytes)
Free at least N bytes from a collection of resources
|
void |
UnboundedPool.registerPoolAccessor(PoolAccessor<? extends PoolableStore> accessor)
Register an accessor implementation with this pool.
|
Constructor and Description |
---|
BoundedPool(long maximumPoolSize,
PoolEvictor<PoolableStore> evictor,
SizeOfEngine defaultSizeOfEngine)
Create a BoundedPool instance
|
StrictlyBoundedPool(long maximumPoolSize,
PoolEvictor<PoolableStore> evictor,
SizeOfEngine defaultSizeOfEngine)
Create a StrictlyBoundedPool instance
|
Modifier and Type | Class and Description |
---|---|
class |
MemoryStore
A Store implementation suitable for fast, concurrent in memory stores.
|
class |
NotifyingMemoryStore |
Modifier and Type | Class and Description |
---|---|
class |
DiskStore
Implements a persistent-to-disk store.
|
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.