org.jboss.cache.eviction
Class EvictionEvent

java.lang.Object
  extended by 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

Nested Class Summary
static class EvictionEvent.Type
           
 
Constructor Summary
EvictionEvent()
           
EvictionEvent(Fqn fqn, EvictionEvent.Type type, int elementDifference)
           
 
Method Summary
 EvictionEvent copy(Fqn newRoot)
          Copies this evicted event node to create a new one with the same values, except with a new Fqn root.
 long getCreationTimestamp()
           
 int getElementDifference()
           
 EvictionEvent.Type getEventType()
           
 Fqn getFqn()
           
 long getInUseTimeout()
           
 void setElementDifference(int elementDifference)
           
 void setEventType(EvictionEvent.Type event)
           
 void setFqn(Fqn fqn)
           
 void setInUseTimeout(long inUseTimeout)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EvictionEvent

public EvictionEvent()

EvictionEvent

public EvictionEvent(Fqn fqn,
                     EvictionEvent.Type type,
                     int elementDifference)
Method Detail

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.