Deprecated API


Contents
Deprecated Interfaces
org.jboss.cache.jmx.CacheJmxWrapperMBean
          use JmxRegistrationManager 
org.jboss.cache.optimistic.DataVersion
          this is to support a deprecated locking scheme (Optimistic Locking). Will be removed when Optimistic Locking support is removed. 
org.jboss.cache.eviction.EvictionPolicy
          please use EvictionActionPolicy instead. 
org.jboss.cache.config.EvictionPolicyConfig
          see EvictionAlgorithmConfig 
org.jboss.cache.jmx.LegacyConfiguration
          use JmxRegistrationManager 
org.jboss.cache.eviction.ModernizableConfig
            
org.jboss.cache.eviction.ModernizablePolicy
            
org.jboss.cache.lock.NodeLock
          will be removed when we drop support for Pessimistic Locking and Optimistic Locking 
org.jboss.cache.commands.legacy.ReversibleCommand
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.optimistic.TransactionWorkspace
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.optimistic.WorkspaceNode
          will be removed along with optimistic and pessimistic locking. 
 

Deprecated Classes
org.jboss.cache.eviction.BaseEvictionPolicy
          see EvictionActionPolicy 
org.jboss.cache.transaction.BatchModeTransactionManagerLookup
          Use batching API on Cache instead. 
org.jboss.cache.factories.CacheConfigsXmlParser
          here for compatibility reasons. Use the class with the same name in the org.jboss.cache.config.parsing package. 
org.jboss.cache.jmx.CacheJmxWrapper
          use JmxRegistrationManager. This class will not be supported from 3.0 on. 
org.jboss.cache.commands.legacy.write.CreateNodeCommand
          will be removed when pessimistic locking is removed. 
org.jboss.cache.optimistic.DefaultDataVersion
          this is to support a deprecated locking scheme (Optimistic Locking). Will be removed when Optimistic Locking support is removed. 
org.jboss.cache.eviction.ElementSizeConfiguration
          see ElementSizeAlgorithmConfig 
org.jboss.cache.eviction.ElementSizePolicy
          see ElementSizeAlgorithm 
org.jboss.cache.eviction.EvictedEventNode
          please use EvictionEvent instead. 
org.jboss.cache.eviction.EvictionPolicyConfigBase
          See EvictionAlgorithmConfigBase. 
org.jboss.cache.eviction.ExpirationConfiguration
          see ExpirationAlgorithmConfig 
org.jboss.cache.eviction.ExpirationPolicy
          see ExpirationAlgorithm 
org.jboss.cache.eviction.FIFOConfiguration
          see FIFOAlgorithmConfig 
org.jboss.cache.eviction.FIFOPolicy
          see FIFOAlgorithm 
org.jboss.cache.lock.IdentityLock
          will be removed when we drop support for Pessimistic Locking and Optimistic Locking 
org.jboss.cache.interceptors.Interceptor
          this will be removed in a 3.x release. Please use CommandInterceptor instead, since it provides strongly typed callbacks which are more efficient. 
org.jboss.cache.loader.JDBCCacheLoaderOld
          please use the JDBCCacheLoader. 
org.jboss.cache.loader.JDBCCacheLoaderOldConfig
          please use JDBCCacheLoaderConfig 
org.jboss.cache.jmx.JmxUtil
           
org.jboss.cache.interceptors.LegacyActivationInterceptor
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.interceptors.LegacyCacheLoaderInterceptor
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.interceptors.LegacyCacheStoreInterceptor
           
org.jboss.cache.interceptors.LegacyDataGravitatorInterceptor
          will be removed with optimistic and pessimistic locking. 
org.jboss.cache.commands.legacy.write.LegacyEvictCommand
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.commands.legacy.read.LegacyGravitateDataCommand
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.invocation.LegacyInvocationContext
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.interceptors.LegacyPassivationInterceptor
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.LegacyRegionManagerImpl
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.statetransfer.LegacyStateTransferGenerator
           
org.jboss.cache.statetransfer.LegacyStateTransferIntegrator
           
org.jboss.cache.statetransfer.LegacyStateTransferManager
           
org.jboss.cache.eviction.LFUConfiguration
          see LFUAlgorithmConfig 
org.jboss.cache.eviction.LFUPolicy
          see LFUAlgorithm 
org.jboss.cache.eviction.LRUConfiguration
          see LRUAlgorithmConfig 
org.jboss.cache.eviction.LRUPolicy
          see LRUAlgorithm 
org.jboss.cache.marshall.MethodCall
          - in favour of ReplicableCommand instances. Will be removed in 3.X. 
org.jboss.cache.eviction.MRUConfiguration
          see MRUAlgorithmConfig 
org.jboss.cache.eviction.MRUPolicy
          see MRUAlgorithm 
org.jboss.cache.lock.NodeBasedLockManager
          since this is specific to legacy locking schemes 
org.jboss.cache.eviction.NullEvictionPolicy
          see NullEvictionAlgorithm 
org.jboss.cache.eviction.NullEvictionPolicyConfig
          see NullEvictionAlgorithmConfig 
org.jboss.cache.commands.OptimisticCommandsFactoryImpl
          will be removed with opt locking 
org.jboss.cache.factories.context.OptimisticContextFactory
          will be removed when optimistic locking is removed. 
org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.interceptors.OptimisticInterceptor
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.interceptors.OptimisticLockingInterceptor
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.optimistic.OptimisticNodeFactory
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.interceptors.OptimisticNodeInterceptor
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.interceptors.OptimisticReplicationInterceptor
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.transaction.OptimisticTransactionContext
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.interceptors.OptimisticTxInterceptor
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.interceptors.OptimisticValidatorInterceptor
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.commands.legacy.write.PessClearDataCommand
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.commands.legacy.read.PessGetChildrenNamesCommand
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.commands.PessimisticCommandsFactoryImpl
          will be removed with possimistic locking 
org.jboss.cache.factories.context.PessimisticContextFactory
          will be removed when pessimistic locking is removed. 
org.jboss.cache.interceptors.PessimisticLockInterceptor
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.lock.PessimisticNodeBasedLockManager
          will be removed with pessimistic locking 
org.jboss.cache.PessimisticNodeFactory
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.transaction.PessimisticTransactionContext
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.PessimisticUnversionedNode
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.commands.legacy.write.PessMoveCommand
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.commands.legacy.write.PessPutDataMapCommand
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.commands.legacy.write.PessPutForExternalReadCommand
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.commands.legacy.write.PessPutKeyValueCommand
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.commands.legacy.write.PessRemoveKeyCommand
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.commands.legacy.write.PessRemoveNodeCommand
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.optimistic.TransactionWorkspaceImpl
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.commands.legacy.write.VersionedInvalidateCommand
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.VersionedNode
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.optimistic.WorkspaceNodeImpl
          will be removed along with optimistic and pessimistic locking. 
org.jboss.cache.config.parsing.XmlConfigurationParser2x
            
 

Deprecated Enums
org.jboss.cache.eviction.EvictionEventType
          left here for old interfaces. Use EvictionEvent.Type instead. 
 

Deprecated Methods
org.jboss.cache.InternalNode.addChildDirect(Fqn)
           
org.jboss.cache.InternalNode.addChildDirect(Fqn, boolean)
           
org.jboss.cache.InternalNode.addChildDirect(NodeSPI)
           
org.jboss.cache.InternalNode.addChildDirect(Object, boolean)
           
org.jboss.cache.InternalNode.addChildDirect(Object, Node)
           
org.jboss.cache.config.EvictionConfig.assertIsTransformable(String)
           
org.jboss.cache.config.Option.clone()
          this method may disappear in future, please use copy() instead. 
org.jboss.cache.RegionImpl.clone()
           
org.jboss.cache.Region.clone()
            
org.jboss.cache.config.EvictionConfig.createDefaultEvictionRegionConfig()
          the default region is now created when this instance is constructed. Use EvictionConfig.getDefaultEvictionRegionConfig() instead. 
org.jboss.cache.jmx.LegacyConfiguration.getCacheLoaderConfiguration()
          use LegacyConfiguration.getCacheLoaderConfig() 
org.jboss.cache.InternalNode.getChildDirect(Fqn)
           
org.jboss.cache.InternalNode.getChildDirect(Object)
           
org.jboss.cache.InternalNode.getChildrenDirect()
           
org.jboss.cache.InternalNode.getChildrenDirect(boolean)
           
org.jboss.cache.InternalNode.getChildrenMapDirect()
           
org.jboss.cache.InvocationContext.getCommand()
           
org.jboss.cache.config.Option.getDataVersion()
          this is to support a deprecated locking scheme (Optimistic Locking). Will be removed when Optimistic Locking support is removed. 
org.jboss.cache.config.EvictionConfig.getDefaultEvictionPolicyClass()
          use EvictionConfig.getDefaultEvictionRegionConfig() instead. 
org.jboss.cache.RegionImpl.getEvictionPolicy()
           
org.jboss.cache.Region.getEvictionPolicy()
            
org.jboss.cache.config.EvictionRegionConfig.getEvictionPolicyConfig()
          use EvictionRegionConfig.getEvictionAlgorithmConfig() instead. 
org.jboss.cache.RegionImpl.getEvictionPolicyConfig()
           
org.jboss.cache.Region.getEvictionPolicyConfig()
            
org.jboss.cache.config.Configuration.getExposeManagementStatistics()
          use isExposeManagementStatistics() 
org.jboss.cache.jmx.CacheJmxWrapper.getInitialStateRetrievalTimeout()
           
org.jboss.cache.jmx.LegacyConfiguration.getInitialStateRetrievalTimeout()
          use LegacyConfiguration.getStateRetrievalTimeout() 
org.jboss.cache.factories.InterceptorChainFactory.getInstance()
           
org.jboss.cache.DefaultCacheFactory.getInstance()
            
org.jboss.cache.NodeSPI.getLock()
          this will be removed in 3.0.0. Please use methods on the LockManager to lock and unlock nodes. 
org.jboss.cache.InvocationContext.getMethodCall()
           
org.jboss.cache.config.Configuration.getNodeLockingScheme()
          will be removed once optimistic and pessimistic locking is removed. 
org.jboss.cache.InternalNode.getOrCreateChild(Object, GlobalTransaction)
          should use the NodeFactory instead. 
org.jboss.cache.NodeSPI.getOrCreateChild(Object, GlobalTransaction)
          should use the NodeFactory instead. 
org.jboss.cache.DataContainerImpl.getRoot()
           
org.jboss.cache.DataContainer.getRoot()
          use Cache.getRoot(); 
org.jboss.cache.loader.JDBCCacheLoaderConfig.getSqlConcat()
           
org.jboss.cache.jmx.LegacyConfiguration.getUseInterceptorMbeans()
          use LegacyConfiguration.getExposeManagementStatistics() 
org.jboss.cache.jmx.CacheJmxWrapper.getUseRegionBasedMarshalling()
           
org.jboss.cache.config.EvictionConfig.getWakeupIntervalSeconds()
          Use EvictionConfig.getWakeupIntervalSeconds(). 
org.jboss.cache.interceptors.base.PrePostProcessingCommandInterceptor.handleCreateNodeCommand(InvocationContext, CreateNodeCommand)
          in 3.0. Will be removed when Optimistic and Pessimistic locking is removed. 
org.jboss.cache.config.Configuration.isNodeLockingOptimistic()
          use Configuration.getNodeLockingScheme() to determine node locking scheme used. 
org.jboss.cache.RegionImpl.nodeEventQueueSize()
           
org.jboss.cache.Region.nodeEventQueueSize()
            
org.jboss.cache.DataContainer.peek(Fqn)
          Note that this only supports legacy locking schemes (OL and PL) and will be removed when those schemes are removed. 
org.jboss.cache.DataContainer.peek(Fqn, boolean)
          Note that this only supports legacy locking schemes (OL and PL) and will be removed when those schemes are removed. 
org.jboss.cache.DataContainer.peek(Fqn, boolean, boolean)
          Note that this only supports legacy locking schemes (OL and PL) and will be removed when those schemes are removed. 
org.jboss.cache.NodeSPI.print(StringBuilder, int)
           
org.jboss.cache.RegionImpl.putNodeEvent(EvictedEventNode)
           
org.jboss.cache.Region.putNodeEvent(EvictedEventNode)
            
org.jboss.cache.jmx.LegacyConfiguration.setCacheLoaderConfiguration(Element)
          use LegacyConfiguration.setCacheLoaderConfig(org.w3c.dom.Element) 
org.jboss.cache.InternalNode.setChildrenMapDirect(Map>)
           
org.jboss.cache.InvocationContext.setCommand(VisitableCommand)
           
org.jboss.cache.config.Option.setDataVersion(DataVersion)
          this is to support a deprecated locking scheme (Optimistic Locking). Will be removed when Optimistic Locking support is removed. 
org.jboss.cache.config.EvictionConfig.setDefaultEventQueueSize(int)
          set these attributes on the default eviction region config. 
org.jboss.cache.config.EvictionConfig.setDefaultEvictionPolicyClass(String)
          use EvictionConfig.setDefaultEvictionRegionConfig(EvictionRegionConfig) instead. 
org.jboss.cache.RegionImpl.setEvictionPolicy(EvictionPolicyConfig)
           
org.jboss.cache.Region.setEvictionPolicy(EvictionPolicyConfig)
            
org.jboss.cache.config.EvictionRegionConfig.setEvictionPolicyConfig(EvictionPolicyConfig)
          see EvictionRegionConfig.setEvictionAlgorithmConfig(EvictionAlgorithmConfig) 
org.jboss.cache.jmx.CacheJmxWrapper.setInitialStateRetrievalTimeout(long)
           
org.jboss.cache.jmx.LegacyConfiguration.setInitialStateRetrievalTimeout(long)
          use LegacyConfiguration.setStateRetrievalTimeout(long) 
org.jboss.cache.InvocationContext.setMethodCall(MethodCall)
          not used anymore. Interceptors will get a ReplicableCommand instance passed in along with an InvocationContext. 
org.jboss.cache.eviction.EvictionAlgorithmConfigBase.setMinTimeToLiveSeconds(long)
           
org.jboss.cache.config.Configuration.setNodeLockingOptimistic(boolean)
           
org.jboss.cache.config.Configuration.setNodeLockingScheme(Configuration.NodeLockingScheme)
          will default to MVCC once optimistic and pessimistic schemes are removed. 
org.jboss.cache.loader.JDBCCacheLoaderConfig.setSqlConcat(String)
           
org.jboss.cache.eviction.LRUAlgorithmConfig.setTimeToLiveSeconds(long)
           
org.jboss.cache.eviction.ExpirationAlgorithmConfig.setTimeToLiveSeconds(long)
           
org.jboss.cache.jmx.LegacyConfiguration.setUseInterceptorMbeans(boolean)
          use LegacyConfiguration.setExposeManagementStatistics(boolean) 
org.jboss.cache.jmx.CacheJmxWrapper.setUseRegionBasedMarshalling(boolean)
           
org.jboss.cache.config.EvictionConfig.setWakeupIntervalSeconds(int)
          Use EvictionConfig.setWakeupInterval(long). 
org.jboss.cache.RegionManager.startEvictionThread()
            
org.jboss.cache.RegionManager.stopEvictionThread()
            
org.jboss.cache.RegionImpl.takeLastEventNode()
           
org.jboss.cache.Region.takeLastEventNode()
            
org.jboss.cache.commands.Visitor.visitCreateNodeCommand(InvocationContext, CreateNodeCommand)
          in 3.0. Will be removed once optimistic and pessimistic locking is removed. 
 

Deprecated Constructors
org.jboss.cache.config.EvictionConfig(String)
          Use EvictionConfig.EvictionConfig(EvictionRegionConfig) instead. 
org.jboss.cache.config.EvictionRegionConfig(Fqn, EvictionPolicyConfig)
          use EvictionRegionConfig.EvictionRegionConfig(org.jboss.cache.Fqn, EvictionAlgorithmConfig) instead. 
org.jboss.cache.Fqn(E...)
          use Fqn.fromElements(Object[]) instead. This constructor will be removed in 3.0.0. 
org.jboss.cache.Fqn(Fqn, E...)
          use Fqn.fromRelativeElements(Fqn, Object[]) instead. This constructor will be removed in 3.0.0. 
org.jboss.cache.Fqn(Fqn, Fqn)
          use Fqn.fromRelativeFqn(Fqn, Fqn) instead. This constructor will be removed in 3.0.0. 
org.jboss.cache.Fqn(List)
          use Fqn.fromList(java.util.List) instead. This constructor will be removed in 3.0.0. 
org.jboss.cache.Fqn(List, boolean)
          use Fqn.fromList(java.util.List) instead. The boolean "safety" hint is calculated internally. This constructor will be removed in 3.0.0. 
 

Deprecated Enum Constants
org.jboss.cache.eviction.EvictionEventType.ADD_ELEMENT_EVENT
           
org.jboss.cache.eviction.EvictionEventType.ADD_NODE_EVENT
           
org.jboss.cache.eviction.EvictionEventType.MARK_IN_USE_EVENT
           
org.jboss.cache.eviction.EvictionEventType.REMOVE_ELEMENT_EVENT
           
org.jboss.cache.eviction.EvictionEventType.REMOVE_NODE_EVENT
           
org.jboss.cache.eviction.EvictionEventType.UNMARK_USE_EVENT
           
org.jboss.cache.eviction.EvictionEventType.VISIT_NODE_EVENT
           
 



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