DATA - The data type handled by this policypublic class ActiveCloneableEvictionPolicyWrapper<DATA> extends ActiveEvictionPolicyWrapper<DATA> implements CloneableEvictionPolicy<DATA>
ActiveEvictionPolicy wraps around a non active
EvictionPolicy. It forwards all calls to
ActiveEvictionPolicy.notifyEvictionWithFakeElement(Object, int) to
EvictionPolicy.notifyEviction(Object, boolean, int) while the
triggered parameter will be set to true.
This class additionally implements the clone method and can wrap around
CloneableEvictionPolicy to make it active.| Constructor and Description |
|---|
ActiveCloneableEvictionPolicyWrapper(CloneableEvictionPolicy<DATA> nestedPolicy)
Creates a wrapper which activates the eviction policy which is wrapped
in.
|
| Modifier and Type | Method and Description |
|---|---|
ActiveCloneableEvictionPolicyWrapper<DATA> |
clone()
This method should return an exact copy of the object it belongs to
including the current object state.
|
notifyEviction, notifyEvictionWithFakeElementequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnotifyEvictionpublic ActiveCloneableEvictionPolicyWrapper(CloneableEvictionPolicy<DATA> nestedPolicy)
ActiveEvictionPolicyWrapper works
with CloneableEvictionPolicy and is thereby cloneable as well.nestedPolicy - The policy which should be activated/wrapped in.public ActiveCloneableEvictionPolicyWrapper<DATA> clone()
CloneableEvictionPolicyclone in interface CloneableEvictionPolicy<DATA>clone in class ObjectCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.