Package | Description |
---|---|
net.sf.ehcache.pool |
This package contains the interfaces concerning the resource pooling facilities.
|
net.sf.ehcache.pool.impl |
This package contains implementations of the resource pooling interfaces.
|
net.sf.ehcache.store |
Store package.
|
net.sf.ehcache.store.cachingtier |
Contains the caching tier implementations
|
net.sf.ehcache.store.chm |
CHM package.
|
net.sf.ehcache.store.disk |
This package contains the disk store.
|
net.sf.ehcache.util.concurrent |
Modifier and Type | Method and Description |
---|---|
PoolAccessor |
Pool.createPoolAccessor(PoolParticipant participant,
int maxDepth,
boolean abortWhenMaxDepthExceeded)
Return a PoolAccessor whose consumption is tracked by this pool, using a default SizeOf engine.
|
PoolAccessor |
Pool.createPoolAccessor(PoolParticipant participant,
SizeOfEngine sizeOfEngine)
Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
|
Modifier and Type | Method and Description |
---|---|
Collection<PoolAccessor> |
Pool.getPoolAccessors()
Return the participants accessing this pool.
|
Modifier and Type | Method and Description |
---|---|
void |
Pool.registerPoolAccessor(PoolAccessor accessor)
Register an accessor implementation with this pool.
|
void |
Pool.removePoolAccessor(PoolAccessor accessor)
Remove the supplied accessor from this pool.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PoolEvictor.freeSpace(Collection<PoolAccessor<T>> from,
long bytes)
Free at least N bytes from a collection of resources
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractPoolAccessor
Abstract PoolAccessor implementation providing pool to store binding functionality.
|
Modifier and Type | Field and Description |
---|---|
static PoolAccessor<PoolParticipant> |
UnboundedPool.UNBOUNDED_ACCESSOR
An accessor that just is unbounded
|
Modifier and Type | Method and Description |
---|---|
PoolAccessor |
AbstractPool.createPoolAccessor(PoolParticipant participant,
int maxDepth,
boolean abortWhenMaxDepthExceeded)
Return a PoolAccessor whose consumption is tracked by this pool, using a default SizeOf engine.
|
PoolAccessor |
UnboundedPool.createPoolAccessor(PoolParticipant participant,
int maxDepth,
boolean abortWhenMaxDepthExceeded)
Return a PoolAccessor whose consumption is tracked by this pool, using a default SizeOf engine.
|
PoolAccessor |
StrictlyBoundedPool.createPoolAccessor(PoolParticipant participant,
SizeOfEngine sizeOfEngine)
Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
|
PoolAccessor |
UnboundedPool.createPoolAccessor(PoolParticipant participant,
SizeOfEngine sizeOfEngine)
Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
|
PoolAccessor |
BoundedPool.createPoolAccessor(PoolParticipant participant,
SizeOfEngine sizeOfEngine)
Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine.
|
Modifier and Type | Method and Description |
---|---|
Collection<PoolAccessor> |
AbstractPool.getPoolAccessors()
Return the participants accessing this pool.
|
Collection<PoolAccessor> |
UnboundedPool.getPoolAccessors()
Return the participants accessing this pool.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractPool.registerPoolAccessor(PoolAccessor accessor)
Register an accessor implementation with this pool.
|
void |
UnboundedPool.registerPoolAccessor(PoolAccessor accessor)
Register an accessor implementation with this pool.
|
void |
AbstractPool.removePoolAccessor(PoolAccessor accessor)
Remove the supplied accessor from this pool.
|
void |
UnboundedPool.removePoolAccessor(PoolAccessor accessor)
Remove the supplied accessor from this pool.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FromLargestCachePoolEvictor.freeSpace(Collection<PoolAccessor<PoolParticipant>> from,
long bytes)
Free at least N bytes from a collection of resources
|
boolean |
BalancedAccessEvictor.freeSpace(Collection<PoolAccessor<PoolParticipant>> from,
long bytes)
Free at least N bytes from a collection of resources
|
Modifier and Type | Method and Description |
---|---|
SelectableConcurrentHashMap |
MemoryStore.BackingFactory.newBackingMap(PoolAccessor poolAccessor,
int initialCapacity,
float loadFactor,
int concurrency,
int maximumCapacity,
RegisteredEventListeners eventListener)
Deprecated.
|
SelectableConcurrentHashMap |
MemoryStore.BackingFactory.newBackingMap(PoolAccessor poolAccessor,
int concurrency,
int maximumCapacity,
RegisteredEventListeners eventListener)
Create a MemoryStore backing map.
|
Modifier and Type | Method and Description |
---|---|
void |
PooledBasedBackEnd.registerAccessor(PoolAccessor poolAccessor)
Registers the accessor with the backend.
|
Constructor and Description |
---|
SelectableConcurrentHashMap(PoolAccessor poolAccessor,
int initialCapacity,
float loadFactor,
int concurrency,
long maximumSize,
RegisteredEventListeners cacheEventNotificationService) |
SelectableConcurrentHashMap(PoolAccessor poolAccessor,
int concurrency,
long maximumSize,
RegisteredEventListeners cacheEventNotificationService) |
Constructor and Description |
---|
Segment(int initialCapacity,
float loadFactor,
DiskStorageFactory primary,
CacheConfiguration cacheConfiguration,
PoolAccessor onHeapPoolAccessor,
PoolAccessor onDiskPoolAccessor,
RegisteredEventListeners cacheEventNotificationService,
org.terracotta.statistics.observer.OperationObserver<CacheOperationOutcomes.EvictionOutcome> evictionObserver)
Create a Segment with the given initial capacity, load-factor, primary element substitute factory, and identity element substitute factory.
|
Segment(int initialCapacity,
float loadFactor,
DiskStorageFactory primary,
CacheConfiguration cacheConfiguration,
PoolAccessor onHeapPoolAccessor,
PoolAccessor onDiskPoolAccessor,
RegisteredEventListeners cacheEventNotificationService,
org.terracotta.statistics.observer.OperationObserver<CacheOperationOutcomes.EvictionOutcome> evictionObserver)
Create a Segment with the given initial capacity, load-factor, primary element substitute factory, and identity element substitute factory.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ConcurrentHashMap.setPoolAccessor(PoolAccessor poolAccessor) |
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.