ehcache

Deprecated API


Contents
Deprecated Interfaces
net.sf.ehcache.store.compound.CopyStrategy
          replaced by ReadWriteCopyStrategy 
 

Deprecated Classes
net.sf.ehcache.config.generator.ConfigurationGenerator
          Use ConfigurationUtil.generateCacheManagerConfigurationText(Configuration) or ConfigurationUtil#generateCacheConfigurationText(CacheConfiguration) instead 
net.sf.ehcache.hibernate.EhCache
           
net.sf.ehcache.hibernate.ccs.EhcacheNonstrictReadWriteCache
           
net.sf.ehcache.hibernate.EhCacheProvider
           
net.sf.ehcache.hibernate.ccs.EhcacheReadOnlyCache
           
net.sf.ehcache.hibernate.ccs.EhcacheReadWriteCache
           
net.sf.ehcache.hibernate.SingletonEhCacheProvider
           
 

Deprecated Fields
net.sf.ehcache.config.TerracottaConfiguration.DEFAULT_CACHE_COHERENT
          since 2.4 Use TerracottaConfiguration.DEFAULT_CONSISTENCY_TYPE instead. 
net.sf.ehcache.config.CacheConfiguration.DEFAULT_DISK_PERSISTENT
          The diskPersistent attribute has been replaced with CacheConfiguration.persistence(PersistenceConfiguration). 
net.sf.ehcache.config.CacheConfiguration.diskPersistent
          The diskPersistent attribute has been replaced with CacheConfiguration.persistence(PersistenceConfiguration). 
net.sf.ehcache.config.CacheConfiguration.overflowToDisk
          The overflowToDisk attribute has been replaced with PersistenceConfiguration.Strategy.LOCALTEMPSWAP. 
 

Deprecated Methods
net.sf.ehcache.statistics.LiveCacheStatisticsData.addGetTimeMillis(long)
            
net.sf.ehcache.config.TerracottaConfiguration.coherent(boolean)
          since 2.4 Use TerracottaConfiguration.consistency(Consistency) instead 
net.sf.ehcache.config.CacheConfiguration.diskPersistent(boolean)
          The diskPersistent attribute has been replaced with CacheConfiguration.persistence(PersistenceConfiguration). 
net.sf.ehcache.config.generator.ConfigurationGenerator.generate(Configuration, CacheConfiguration)
          use appropriate methods in ConfigurationUtil instead 
net.sf.ehcache.config.generator.ConfigurationGenerator.generate(Configuration, CacheConfiguration, Map)
          use appropriate methods in ConfigurationUtil instead 
net.sf.ehcache.statistics.sampled.SampledCacheStatistics.getAverageGetTimeMostRecentSample()
            
net.sf.ehcache.statistics.sampled.CacheStatisticsSampler.getAverageGetTimeSample()
            
net.sf.ehcache.statistics.NullLiveCacheStatisticsData.getInMemorySize()
          see NullLiveCacheStatisticsData.getLocalHeapSize() 
net.sf.ehcache.statistics.LiveCacheStatisticsImpl.getInMemorySize()
          see LiveCacheStatisticsImpl.getLocalHeapSize() 
net.sf.ehcache.statistics.LiveCacheStatistics.getInMemorySize()
          use LiveCacheStatistics.getLocalHeapSize() 
net.sf.ehcache.statistics.LiveCacheStatisticsWrapper.getInMemorySize()
          see LiveCacheStatisticsWrapper.getLocalHeapSize() 
net.sf.ehcache.management.sampled.SampledCache.getInMemorySize()
          use SampledCache.getLocalHeapSize() 
net.sf.ehcache.Element.getKey()
          Please use Element.getObjectKey() instead. 
net.sf.ehcache.Ehcache.getKeysNoDuplicateCheck()
          versions since 2.1 do not return duplicates 
net.sf.ehcache.config.CacheConfiguration.getMaxElementsInMemory()
          use CacheConfiguration.getMaxEntriesLocalHeap() 
net.sf.ehcache.management.sampled.SampledCacheMBean.getMaxElementsInMemory()
          use CacheSampler.getMaxEntriesLocalHeap() instead 
net.sf.ehcache.management.CacheConfigurationMBean.getMaxElementsInMemory()
          use CacheConfigurationMBean.getMaxEntriesLocalHeap() 
net.sf.ehcache.management.CacheConfiguration.getMaxElementsInMemory()
          use CacheConfiguration.getMaxEntriesLocalHeap() 
net.sf.ehcache.management.CacheConfigurationMBean.getMaxElementsOnDisk()
          use CacheConfigurationMBean.getMaxEntriesLocalDisk() 
net.sf.ehcache.management.CacheConfiguration.getMaxElementsOnDisk()
          use CacheConfiguration.getMaxEntriesLocalDisk() 
net.sf.ehcache.statistics.LiveCacheStatistics.getMaxGetTimeMillis()
            
net.sf.ehcache.statistics.LiveCacheStatisticsWrapper.getMaxGetTimeMillis()
            
net.sf.ehcache.config.CacheConfiguration.getMaxMemoryOffHeap()
          See CacheConfiguration.getMaxBytesLocalOffHeapAsString() 
net.sf.ehcache.config.CacheConfiguration.getMaxMemoryOffHeapInBytes()
          CacheConfiguration.getMaxBytesLocalOffHeap() 
net.sf.ehcache.management.CacheConfigurationMBean.getMaxMemoryOffHeapInBytes()
          use CacheConfigurationMBean.getMaxBytesLocalOffHeap() 
net.sf.ehcache.management.CacheConfiguration.getMaxMemoryOffHeapInBytes()
          use CacheConfiguration.getMaxBytesLocalOffHeap() 
net.sf.ehcache.statistics.LiveCacheStatistics.getMinGetTimeMillis()
            
net.sf.ehcache.statistics.LiveCacheStatisticsWrapper.getMinGetTimeMillis()
            
net.sf.ehcache.Element.getNextToLastAccessTime()
          The nextToLastAccessTime field is unused since version 1.7, retrieving it will return the lastAccessTime. Use #getLastAccessTime() instead. 
net.sf.ehcache.statistics.NullLiveCacheStatisticsData.getOffHeapSize()
          see NullLiveCacheStatisticsData.getLocalOffHeapSize() 
net.sf.ehcache.statistics.LiveCacheStatisticsImpl.getOffHeapSize()
          see LiveCacheStatisticsImpl.getLocalOffHeapSize() 
net.sf.ehcache.statistics.LiveCacheStatistics.getOffHeapSize()
          use LiveCacheStatistics.getLocalOffHeapSize() 
net.sf.ehcache.statistics.LiveCacheStatisticsWrapper.getOffHeapSize()
          see LiveCacheStatisticsWrapper.getLocalOffHeapSize() 
net.sf.ehcache.management.sampled.SampledCache.getOffHeapSize()
          use SampledCache.getLocalOffHeapSize() 
net.sf.ehcache.management.sampled.CacheSamplerImpl.getOffHeapSize()
          use CacheSamplerImpl.getLocalOffHeapSize() 
net.sf.ehcache.statistics.NullLiveCacheStatisticsData.getOnDiskSize()
          see NullLiveCacheStatisticsData.getLocalDiskSize() 
net.sf.ehcache.statistics.LiveCacheStatisticsImpl.getOnDiskSize()
          see LiveCacheStatisticsImpl.getLocalDiskSize() 
net.sf.ehcache.statistics.LiveCacheStatistics.getOnDiskSize()
          use LiveCacheStatistics.getLocalDiskSize() 
net.sf.ehcache.statistics.LiveCacheStatisticsWrapper.getOnDiskSize()
          see LiveCacheStatisticsWrapper.getLocalDiskSize() 
net.sf.ehcache.management.sampled.SampledCache.getOnDiskSize()
          use SampledCache.getLocalDiskSize() 
net.sf.ehcache.management.sampled.CacheSamplerImpl.getOnDiskSize()
          use CacheSamplerImpl.getLocalDiskSize() 
net.sf.ehcache.Element.getValue()
          Please use Element.getObjectValue() instead. 
net.sf.ehcache.constructs.EhcacheDecoratorAdapter.isClusterCoherent()
          Use EhcacheDecoratorAdapter.isClusterBulkLoadEnabled() instead 
net.sf.ehcache.management.sampled.SampledCache.isClusterCoherent()
           
net.sf.ehcache.management.sampled.SampledCacheMBean.isClusterCoherent()
          use CacheSampler.isClusterBulkLoadEnabled() instead 
net.sf.ehcache.Ehcache.isClusterCoherent()
          Use Ehcache.isClusterBulkLoadEnabled() instead 
net.sf.ehcache.Cache.isClusterCoherent()
          use isClusterBulkLoadEnabled() instead 
net.sf.ehcache.config.TerracottaConfiguration.isCoherent()
          since 2.4 Use TerracottaConfiguration.getConsistency() instead to query the TerracottaConfiguration.Consistency or Ehcache#isNodeCoherent() to query if the node is coherent 
net.sf.ehcache.config.CacheConfiguration.isDiskPersistent()
          The diskPersistent attribute has been replaced with CacheConfiguration.persistence(PersistenceConfiguration). 
net.sf.ehcache.constructs.EhcacheDecoratorAdapter.isNodeCoherent()
          Use EhcacheDecoratorAdapter.isNodeBulkLoadEnabled() instead 
net.sf.ehcache.management.sampled.SampledCache.isNodeCoherent()
           
net.sf.ehcache.management.sampled.SampledCacheMBean.isNodeCoherent()
          use CacheSampler.isNodeBulkLoadEnabled() instead 
net.sf.ehcache.Ehcache.isNodeCoherent()
          Use Ehcache.isNodeBulkLoadEnabled() instead 
net.sf.ehcache.Cache.isNodeCoherent()
          use isNodeBulkLoadEnabled() instead 
net.sf.ehcache.config.CacheConfiguration.isOverflowToDisk()
          The overflowToDisk attribute has been replaced with PersistenceConfiguration.Strategy.LOCALTEMPSWAP. 
net.sf.ehcache.config.CacheConfiguration.maxElementsInMemory(int)
          use CacheConfiguration.maxEntriesLocalHeap(int) 
net.sf.ehcache.config.CacheConfiguration.maxMemoryOffHeap(String)
          See CacheConfiguration.maxBytesLocalOffHeap(long, net.sf.ehcache.config.MemoryUnit) 
net.sf.ehcache.store.MemoryStore.BackingFactory.newBackingMap(PoolAccessor, boolean, int, float, int, int, RegisteredEventListeners)
           
net.sf.ehcache.statistics.CacheUsageListener.notifyTimeTakenForGet(long)
            
net.sf.ehcache.config.CacheConfiguration.overflowToDisk(boolean)
          The overflowToDisk attribute has been replaced with PersistenceConfiguration.Strategy.LOCALTEMPSWAP. 
net.sf.ehcache.config.TerracottaConfiguration.setCoherent(boolean)
          since 2.4 Use TerracottaConfiguration.setConsistency(Consistency) instead 
net.sf.ehcache.Element.setCreateTime()
          Resetting the creation time is not recommended as of version 1.7 
net.sf.ehcache.config.CacheConfiguration.setDiskPersistent(boolean)
          The diskPersistent attribute has been replaced with CacheConfiguration.persistence(PersistenceConfiguration). 
net.sf.ehcache.config.CacheConfiguration.setMaxElementsInMemory(int)
          use CacheConfiguration.setMaxEntriesLocalHeap(long) 
net.sf.ehcache.management.sampled.SampledCacheMBean.setMaxElementsInMemory(int)
          use #setMaxEntriesLocalHeap() instead 
net.sf.ehcache.management.CacheConfigurationMBean.setMaxElementsInMemory(int)
          use CacheConfigurationMBean.setMaxEntriesLocalHeap(long) 
net.sf.ehcache.management.CacheConfiguration.setMaxElementsInMemory(int)
          use CacheConfiguration.setMaxEntriesLocalHeap(long) 
net.sf.ehcache.management.CacheConfigurationMBean.setMaxElementsOnDisk(int)
          use CacheConfigurationMBean.setMaxEntriesLocalDisk(long) 
net.sf.ehcache.management.CacheConfiguration.setMaxElementsOnDisk(int)
          use CacheConfiguration.setMaxEntriesLocalDisk(long) 
net.sf.ehcache.config.CacheConfiguration.setMaxMemoryOffHeap(String)
          See CacheConfiguration.setMaxBytesLocalOffHeap(java.lang.String) 
net.sf.ehcache.constructs.EhcacheDecoratorAdapter.setNodeCoherent(boolean)
          Use EhcacheDecoratorAdapter.setNodeBulkLoadEnabled(boolean) instead 
net.sf.ehcache.management.sampled.SampledCache.setNodeCoherent(boolean)
          use SampledCache.setNodeBulkLoadEnabled(boolean) instead 
net.sf.ehcache.management.sampled.SampledCacheMBean.setNodeCoherent(boolean)
          use CacheSampler.setNodeBulkLoadEnabled(boolean) instead 
net.sf.ehcache.Ehcache.setNodeCoherent(boolean)
          Use Ehcache.setNodeBulkLoadEnabled(boolean) instead 
net.sf.ehcache.Cache.setNodeCoherent(boolean)
          use setNodeBulkLoadEnabled(boolean) instead 
net.sf.ehcache.config.CacheConfiguration.setOverflowToDisk(boolean)
          The overflowToDisk attribute has been replaced with PersistenceConfiguration.Strategy.LOCALTEMPSWAP. 
net.sf.ehcache.constructs.EhcacheDecoratorAdapter.waitUntilClusterCoherent()
          Use EhcacheDecoratorAdapter.waitUntilClusterBulkLoadComplete() instead 
net.sf.ehcache.Ehcache.waitUntilClusterCoherent()
          Use Ehcache.waitUntilClusterBulkLoadComplete() instead 
net.sf.ehcache.Cache.waitUntilClusterCoherent()
          use waitUntilClusterBulkLoadComplete() instead 
 

Deprecated Constructors
net.sf.ehcache.Element(Object, Object, long, long, long, long, long, long)
          The nextToLastAccessTime field is unused since version 1.7, setting it will have no effect. Use #Element(Object, Object, long, long, long, long, long) instead 
 


ehcache

Copyright © 2003-2015 Terracotta, Inc.. All Rights Reserved.