org.jboss.cache.eviction
Class EvictionEvent
java.lang.Object
org.jboss.cache.eviction.EvictionEvent
- Direct Known Subclasses:
- EvictedEventNode
public class EvictionEvent
- extends Object
An eviction event records activity on nodes in the cache. These are recorded on a Region
for processing
later by calls to Region.processEvictionQueues()
.
- See Also:
Region
EvictionEvent
public EvictionEvent()
EvictionEvent
public EvictionEvent(Fqn fqn,
EvictionEvent.Type type,
int elementDifference)
getCreationTimestamp
public long getCreationTimestamp()
getInUseTimeout
public long getInUseTimeout()
setInUseTimeout
public void setInUseTimeout(long inUseTimeout)
getElementDifference
public int getElementDifference()
setElementDifference
public void setElementDifference(int elementDifference)
getFqn
public Fqn getFqn()
setFqn
public void setFqn(Fqn fqn)
setEventType
public void setEventType(EvictionEvent.Type event)
getEventType
public EvictionEvent.Type getEventType()
toString
public String toString()
- Overrides:
toString
in class Object
copy
public EvictionEvent copy(Fqn newRoot)
- Copies this evicted event node to create a new one with the same values, except with a new Fqn root.
- Parameters:
newRoot
- new Fqn root to use
- Returns:
- a new EvictedEventNode instance
- See Also:
Region.copy(org.jboss.cache.Fqn)
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.