|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.pool.impl.UnboundedPool
public class UnboundedPool
A no-op pool which does not enforce any resource consumption limit.
| Field Summary | |
|---|---|
static PoolAccessor<PoolParticipant> |
UNBOUNDED_ACCESSOR
An accessor that just is unbounded |
| Constructor Summary | |
|---|---|
UnboundedPool()
Create an UnboundedPool instance |
|
| Method Summary | |
|---|---|
PoolAccessor |
createPoolAccessor(PoolParticipant participant,
int maxDepth,
boolean abortWhenMaxDepthExceeded)
Return a PoolAccessor whose consumption is tracked by this pool, using a default SizeOf engine. |
PoolAccessor |
createPoolAccessor(PoolParticipant participant,
SizeOfEngine sizeOfEngine)
Return a PoolAccessor whose consumption is tracked by this pool, using a specific SizeOf engine. |
PoolEvictor |
getEvictor()
Return the pool evictor used by this pool. |
long |
getMaxSize()
Return the maximum size of the pool. |
Collection<PoolAccessor> |
getPoolAccessors()
Return the participants accessing this pool. |
long |
getSize()
Return the used size of the pool. |
void |
registerPoolAccessor(PoolAccessor accessor)
Register an accessor implementation with this pool. |
void |
removePoolAccessor(PoolAccessor accessor)
Remove the supplied accessor from this pool. |
void |
setMaxSize(long newSize)
Change the maximum size of the pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PoolAccessor<PoolParticipant> UNBOUNDED_ACCESSOR
| Constructor Detail |
|---|
public UnboundedPool()
| Method Detail |
|---|
public long getSize()
getSize in interface Poolpublic long getMaxSize()
getMaxSize in interface Poolpublic void setMaxSize(long newSize)
setMaxSize in interface PoolnewSize - the new pool size.
public PoolAccessor createPoolAccessor(PoolParticipant participant,
int maxDepth,
boolean abortWhenMaxDepthExceeded)
createPoolAccessor in interface Poolparticipant - the participant which will use the created accessor.maxDepth - maximum depth of the object graph to traverseabortWhenMaxDepthExceeded - true if the object traversal should be aborted when the max depth is exceeded
public PoolAccessor createPoolAccessor(PoolParticipant participant,
SizeOfEngine sizeOfEngine)
createPoolAccessor in interface Poolparticipant - the participant which will use the created accessor.sizeOfEngine - the SizeOf engine used to measure the size of objects added through the created accessor.
public void registerPoolAccessor(PoolAccessor accessor)
registerPoolAccessor in interface Poolaccessor - accessor to be registeredpublic void removePoolAccessor(PoolAccessor accessor)
removePoolAccessor in interface Poolaccessor - accessor to be removedpublic Collection<PoolAccessor> getPoolAccessors()
getPoolAccessors in interface Poolpublic PoolEvictor getEvictor()
getEvictor in interface Pool
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||