Top Deprecated
ehcache-core 2.10.9.2

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

the approximate size of the memory store in bytes
net.sf.ehcache.Cache.calculateInMemorySize
()

Returns:

the size of the off-heap store in bytes
net.sf.ehcache.Cache.calculateOffHeapSize
()

Returns:

the size of the on-disk store in bytes
net.sf.ehcache.Cache.calculateOnDiskSize
()

Returns:

the number of elements in the disk store.
net.sf.ehcache.Cache.getDiskStoreSize
()

Returns:

the number of elements in the memory store
net.sf.ehcache.Cache.getMemoryStoreSize
()

Returns:

the number of elements in the off-heap store
net.sf.ehcache.Cache.getOffHeapStoreSize
()

net.sf.ehcache.Cache.setNodeCoherent(boolean
true transitions to coherent mode, false to incoherent mode
coherent
)

use setNodeBulkLoadEnabled(boolean) instead

net.sf.ehcache.Cache.tryRemoveImmediately(final Object key, final boolean notifyListeners)

Returns:

the approximate size of the memory store in bytes
net.sf.ehcache.Ehcache.calculateInMemorySize
()

Returns:

the size of the off-heap store in bytes
net.sf.ehcache.Ehcache.calculateOffHeapSize
()

Returns:

the size of the on-disk store in bytes
net.sf.ehcache.Ehcache.calculateOnDiskSize
()

Returns:

the number of elements in the disk store.
net.sf.ehcache.Ehcache.getDiskStoreSize
()

Returns:

a list of Object keys
net.sf.ehcache.Ehcache.getKeysNoDuplicateCheck
()

versions since 2.1 do not return duplicates

Returns:

the number of elements in the memory store
net.sf.ehcache.Ehcache.getMemoryStoreSize
()

Returns:

the number of elements in the off-heap store
net.sf.ehcache.Ehcache.getOffHeapStoreSize
()

Returns:

true if the cache is in coherent mode cluster-wide, false otherwise
net.sf.ehcache.Ehcache.isClusterCoherent
()

Use isClusterBulkLoadEnabled() instead

Returns:

true if the cache is in coherent mode cluster-wide, false otherwise
net.sf.ehcache.Ehcache.isNodeCoherent
()

Use isNodeBulkLoadEnabled() instead

net.sf.ehcache.Ehcache.setNodeCoherent(boolean
true transitions to coherent mode, false to incoherent mode
coherent
)

Use setNodeBulkLoadEnabled(boolean) instead

net.sf.ehcache.Element.Element(final Object key, final Object value, final long version, final long creationTime, final long lastAccessTime, final long nextToLastAccessTime, final long lastUpdateTime, final long hitCount)

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

net.sf.ehcache.Element.Element(final Object
any non null value
key
,
final Object
any value, including nulls
value
,
final Boolean
specify as non-null to override cache configuration
eternal
,
final Integer
specify as non-null to override cache configuration
timeToIdleSeconds
,
final Integer
specify as non-null to override cache configuration
timeToLiveSeconds
)

Returns:

The key value.
net.sf.ehcache.Element.getKey
()

Please use getObjectKey() instead.

net.sf.ehcache.Element.getNextToLastAccessTime()

The nextToLastAccessTime field is unused since version 1.7, retrieving it will return the lastAccessTime. Use #getLastAccessTime() instead.

Returns:

The value which must be Serializable. If not use getObjectValue.
net.sf.ehcache.Element.getValue
()

Please use getObjectValue() instead.

net.sf.ehcache.Element.setCreateTime()

Resetting the creation time is not recommended as of version 1.7

Returns:

this configuration instance
net.sf.ehcache.config.CacheConfiguration.diskPersistent
(boolean
whether to persist the cache to disk between JVM restarts.
diskPersistent
)

The diskPersistent attribute has been replaced with persistence(PersistenceConfiguration).

Returns:

the max memory of the offheap store for this cache.
net.sf.ehcache.config.CacheConfiguration.getMaxMemoryOffHeap
()

See getMaxBytesLocalOffHeapAsString()

Returns:

the max memory of the offheap store for this cache, in bytes.
net.sf.ehcache.config.CacheConfiguration.getMaxMemoryOffHeapInBytes
()

getMaxBytesLocalOffHeap()

net.sf.ehcache.config.CacheConfiguration.isOverflowToDisk()

The overflowToDisk attribute has been replaced with Strategy#LOCALTEMPSWAP.

Returns:

this configuration instance
net.sf.ehcache.config.CacheConfiguration.maxElementsInMemory
(int
The maximum number of elements in memory, before they are evicted (0 == no limit)
maxElementsInMemory
)

use maxEntriesLocalHeap(int)

Returns:

this configuration instance
net.sf.ehcache.config.CacheConfiguration.maxElementsOnDisk
(int
the maximum number of Elements to allow on the disk. 0 means unlimited.
maxElementsOnDisk
)

use maxEntriesLocalDisk(int) for unclustered caches and maxEntriesInCache(long) for clustered caches.

Returns:

this configuration instance
net.sf.ehcache.config.CacheConfiguration.maxMemoryOffHeap
(String
the max off heap memory size allocated for this cache.
maxMemoryOffHeap
)

See maxBytesLocalOffHeap(long, net.sf.ehcache.config.MemoryUnit)

net.sf.ehcache.config.CacheConfiguration.overflowToDisk

The overflowToDisk attribute has been replaced with Strategy#LOCALTEMPSWAP.

Returns:

this configuration instance
net.sf.ehcache.config.CacheConfiguration.overflowToDisk
(boolean
whether to use the disk store
overflowToDisk
)

The overflowToDisk attribute has been replaced with Strategy#LOCALTEMPSWAP.

net.sf.ehcache.config.CacheConfiguration.setDiskPersistent(boolean
whether to persist the cache to disk between JVM restarts
diskPersistent
)

The diskPersistent attribute has been replaced with persistence(PersistenceConfiguration).

net.sf.ehcache.config.CacheConfiguration.setMaxElementsInMemory(int
The maximum number of elements in memory, before they are evicted (0 == no limit)
maxElementsInMemory
)

use setMaxEntriesLocalHeap(long)

net.sf.ehcache.config.CacheConfiguration.setMaxElementsOnDisk(int
the maximum number of Elements to allow on the disk. 0 means unlimited.
maxElementsOnDisk
)

use setMaxEntriesLocalDisk(long) for unclustered caches and setMaxEntriesInCache(long) for clustered caches.

net.sf.ehcache.config.CacheConfiguration.setMaxMemoryOffHeap(String
the max off heap memory size allocated for this cache.
maxMemoryOffHeap
)

See setMaxBytesLocalOffHeap(java.lang.String)

net.sf.ehcache.config.CacheConfiguration.setOverflowToDisk(boolean
whether to use the disk store
overflowToDisk
)

The overflowToDisk attribute has been replaced with Strategy#LOCALTEMPSWAP.

Returns:

this configuration instance
net.sf.ehcache.config.CacheConfiguration.statistics
(boolean statistics)

Returns:

this configuration instance
net.sf.ehcache.config.Configuration.updateCheck
(boolean
true if the update check should be turned on; or false otherwise
updateCheck
)

Returns:

attribute type as class
net.sf.ehcache.config.ConfigurationHelper.getSearchAttributeType
(SearchAttribute
search attribute
sa
,
ClassLoader loader)

internal use only

Returns:

this configuration instance
net.sf.ehcache.config.TerracottaConfiguration.coherent
(boolean coherent)

since 2.4 Use consistency(Consistency) instead

Returns:

this configuration instance
net.sf.ehcache.config.TerracottaConfiguration.coherentReads
(boolean coherentReads)

Returns:

this configuration instance
net.sf.ehcache.config.TerracottaConfiguration.copyOnRead
(boolean isCopyOnRead)

Returns:

true if configured in coherent mode.
net.sf.ehcache.config.TerracottaConfiguration.isCoherent
()

since 2.4 Use getConsistency() instead to query the Consistency or Ehcache#isNodeCoherent() to query if the node is coherent

net.sf.ehcache.config.TerracottaConfiguration.setCoherentReads(boolean
true if coherent reads should be used; false otherwise
coherentReads
)

Returns:

String equivalent to an ehcache.xml for the input parameters
net.sf.ehcache.config.generator.ConfigurationGenerator.generate
(Configuration configuration, CacheConfiguration defaultCacheConfiguration, Map<String, CacheConfiguration> cacheConfigs)

use appropriate methods in ConfigurationUtil instead

Returns:

String containing configuration for the input CacheConfiguration
net.sf.ehcache.config.generator.ConfigurationGenerator.generate
(Configuration configuration, CacheConfiguration cacheConfiguration)

use appropriate methods in ConfigurationUtil instead

net.sf.ehcache.constructs.EhcacheDecoratorAdapter.setNodeCoherent(boolean
true transitions to coherent mode, false to incoherent mode
coherent
)

Use setNodeBulkLoadEnabled(boolean) instead

net.sf.ehcache.hibernate.AbstractEhcacheProvider

Deprecated as a consequence of CacheProvider being deprecated.

Returns:

a newly built cache will be built and initialised
net.sf.ehcache.hibernate.AbstractEhcacheProvider.buildCache
(String
the name of the cache. Must match a cache configured in ehcache.xml
name
,
Properties
not used
properties
)

Deprecated as a consequence of Cache being deprecated. See corresponding docs for further information.

net.sf.ehcache.hibernate.ccs.AbstractEhcacheConcurrencyStrategy.cache

Deprecated as a consequence of EhCache being deprecated. See corresponding docs for further information.

net.sf.ehcache.hibernate.ccs.AbstractEhcacheConcurrencyStrategy.getCache()

Deprecated as a consequence of Cache being deprecated. See corresponding docs for further information.

net.sf.ehcache.hibernate.ccs.AbstractEhcacheConcurrencyStrategy.setCache(Cache cache)

Deprecated as a consequence of Cache being deprecated. See corresponding docs for further information.

Returns:

Max elements in memory config setting value
net.sf.ehcache.management.sampled.SampledCacheMBean.getMaxElementsInMemory
()

use getMaxEntriesLocalHeap() instead

net.sf.ehcache.store.CacheStore.CacheStore(final CachingTier<Object, Element>
the cache fronting the authority
cache
,
final AuthoritativeTier
the authority fronted by the cache
authority
,
final CacheConfiguration
OMFG! NOOOOOooooo.....
cacheConfiguration
)

Returns:

the count of entries held in heap
net.sf.ehcache.store.CachingTier.getInMemorySize
()

Returns:

the count of entries held off heap
net.sf.ehcache.store.CachingTier.getOffHeapSize
()

net.sf.ehcache.store.CachingTier.recalculateSize(K
the key to perform the recalculation for
key
)

Returns:

a backing map
net.sf.ehcache.store.MemoryStore.BackingFactory.newBackingMap
(PoolAccessor<T extends PoolParticipant>
on-heap pool accessor
poolAccessor
,
int
initial store capacity
initialCapacity
,
float
map load factor
loadFactor
,
int
map concurrency
concurrency
,
int
maximum store capacity
maximumCapacity
,
RegisteredEventListeners
event listener (or null for no notifications)
eventListener
)

Returns:

select target names, searchAttribute or aggregator
net.sf.ehcache.store.StoreQuery.getTargets
()

Returns:

the amount of mappings installed
net.sf.ehcache.store.cachingtier.HeapCacheBackEnd.size
()

Returns:

the amount of bytes for this backend
net.sf.ehcache.store.cachingtier.PooledBasedBackEnd.getSizeInBytes
()

net.sf.ehcache.store.compound.LegacyCopyStrategyAdapter.LegacyCopyStrategyAdapter(CopyStrategy
the legacy CopyStrategy to adapt
legacyCopyStrategy
)

Deprecated as a consequence of CopyStrategy being deprecated. See corresponding docs for further information.

net.sf.ehcache.store.compound.LegacyCopyStrategyAdapter.legacyCopyStrategy

Deprecated as a consequence of CopyStrategy being deprecated. See corresponding docs for further information.

net.sf.ehcache.store.disk.Segment.returnSafeDeprecated(final Object key, final int hash, final Element element)