org.jboss.cache
Class LegacyRegionManagerImpl

java.lang.Object
  extended by org.jboss.cache.RegionManagerImpl
      extended by org.jboss.cache.LegacyRegionManagerImpl
All Implemented Interfaces:
RegionManager

Deprecated. will be removed along with optimistic and pessimistic locking.

@ThreadSafe
@Deprecated
public class LegacyRegionManagerImpl
extends RegionManagerImpl

For optimistic and pessimistically locked caches

Since:
2.0.0
Author:
Manik Surtani

Field Summary
 
Fields inherited from class org.jboss.cache.RegionManagerImpl
buddyFqnTransformer, configuration, DEFAULT_REGION, lockManager, log, rpcManager, trace
 
Constructor Summary
LegacyRegionManagerImpl()
          Deprecated.  
 
Method Summary
protected  void inactivateRegion(Fqn fqn)
          Deprecated. Causes the cache to stop accepting replication events for the subtree rooted at subtreeFqn and evict all nodes in that subtree.
 
Methods inherited from class org.jboss.cache.RegionManagerImpl
activate, activateIfEmpty, deactivate, destroy, dumpRegions, getAllRegions, getCache, getConfiguration, getEvictionTimerTask, getNumRegions, getRegion, getRegion, getRegion, getValidMarshallingRegion, hasRegion, injectDependencies, isDefaultInactive, isInactive, isRegionLocked, isUsingEvictions, lock, removeRegion, reset, setContextClassLoaderAsCurrent, setDefaultInactive, setEvictionConfig, setUsingEvictions, start, startEvictionThread, stop, stopEvictionThread, toString, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LegacyRegionManagerImpl

public LegacyRegionManagerImpl()
Deprecated. 
Method Detail

inactivateRegion

protected void inactivateRegion(Fqn fqn)
                         throws CacheException
Deprecated. 
Causes the cache to stop accepting replication events for the subtree rooted at subtreeFqn and evict all nodes in that subtree.

This is legacy code and should not be called directly. This is a private method for now and will be refactored out. You should be using RegionManagerImpl.activate(Fqn) and RegionManagerImpl.deactivate(Fqn)

Overrides:
inactivateRegion in class RegionManagerImpl
Parameters:
fqn - Fqn string indicating the uppermost node in the portion of the cache that should be activated.
Throws:
CacheException - if there is a problem evicting nodes
IllegalStateException - if Configuration.isUseRegionBasedMarshalling() is false


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.