当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 Cache API Documentation 英文版文档
Region (JBossCache API) - JBoss 4.0.1 sp1 Cache API Documentation 英文版文档
org.jboss.cache.eviction
Class Region
java.lang.Object
org.jboss.cache.eviction.Region
- public class Region
- extends 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
Field Summary |
protected org.jboss.logging.Logger |
log_
|
protected EDU.oswego.cs.dl.util.concurrent.BoundedBuffer |
nodeEventQueue_
|
static long |
WAIT_TIME
|
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.jboss.logging.Logger log_
getMaxNodes
public int getMaxNodes()
setMaxNodes
public void setMaxNodes(int maxNodes)
getTimeToLiveSeconds
public long getTimeToLiveSeconds()
setTimeToLiveSeconds
public void setTimeToLiveSeconds(long secs)
getEvictionAlgorithm
public EvictionAlgorithm getEvictionAlgorithm()
getEvictionPolicy
public EvictionPolicy getEvictionPolicy()
getFqn
public 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,
Integer event)
takeLastEventNode
public EvictedEventNode takeLastEventNode()
- Take the last node from node queue. It will also
remove it from the queue.
- Returns:
nodeEventQueueSize
public int nodeEventQueueSize()
resetEvictionQueues
public void resetEvictionQueues()
toString
public String toString()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.