org.jboss.cache.eviction
Class Region
java.lang.Object
|
+--org.jboss.cache.eviction.Region
- public class Region
- extends java.lang.Object
A region is a collection of tree cache nodes that share the same eviction
policy configurations, e.g., maxNodes, etc. The region is specified via
Fqn.
- Author:
- Ben Wang 2-2004, Daniel Huang
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WAIT_TIME
public static final long WAIT_TIME
- See Also:
- Constant Field Values
nodeEventQueue_
protected EDU.oswego.cs.dl.util.concurrent.BoundedBuffer nodeEventQueue_
log_
protected org.apache.commons.logging.Log log_
checkCapacityCount
protected short checkCapacityCount
getMaxNodes
public int getMaxNodes()
setMaxNodes
public void setMaxNodes(int maxNodes)
getTimeToLiveSeconds
public long getTimeToLiveSeconds()
setTimeToLiveSeconds
public void setTimeToLiveSeconds(long secs)
getMaxAgeSeconds
public int getMaxAgeSeconds()
setMaxAgeSeconds
public void setMaxAgeSeconds(int maxAge)
getEvictionAlgorithm
public EvictionAlgorithm getEvictionAlgorithm()
getEvictionPolicy
public EvictionPolicy getEvictionPolicy()
getFqn
public java.lang.String getFqn()
setAddedNode
public void setAddedNode(Fqn fqn)
setRemovedNode
public void setRemovedNode(Fqn fqn)
setVisitedNode
public void setVisitedNode(Fqn fqn)
putNodeEvent
protected void putNodeEvent(Fqn fqn,
java.lang.Integer event)
takeLastEventNode
public EvictedEventNode takeLastEventNode()
- Take the last node from node queue. It will also
remove it from the queue.
- Returns:
- The EvictedEventNode
nodeEventQueueSize
public int nodeEventQueueSize()
resetEvictionQueues
public void resetEvictionQueues()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1998-2005 JBoss Inc . All Rights Reserved.