ehcache

Serialized Form


Package net.sf.ehcache

Class net.sf.ehcache.CacheException extends java.lang.RuntimeException implements Serializable

Class net.sf.ehcache.Element extends java.lang.Object implements Serializable

serialVersionUID: 1098572221246444544L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Custom serialization read logic

Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Custom serialization write logic

Throws:
java.io.IOException
Serialized Fields

key

java.lang.Object key
the cache key.


value

java.lang.Object value
the value.


version

long version
version of the element. System.currentTimeMillis() is used to compute version for updated elements. That way, the actual version of the updated element does not need to be checked.


hitCount

long hitCount
The number of times the element was hit.


timeToLive

int timeToLive
The amount of time for the element to live, in seconds. 0 indicates unlimited.


timeToIdle

int timeToIdle
The amount of time for the element to idle, in seconds. 0 indicates unlimited.


lastUpdateTime

long lastUpdateTime
If there is an Element in the Cache and it is replaced with a new Element for the same key, then both the version number and lastUpdateTime should be updated to reflect that. The creation time will be the creation time of the new Element, not the original one, so that TTL concepts still work.


cacheDefaultLifespan

boolean cacheDefaultLifespan

Class net.sf.ehcache.MimeTypeByteArray extends java.lang.Object implements Serializable

Serialized Fields

mimeType

java.lang.String mimeType

value

byte[] value

Class net.sf.ehcache.ObjectExistsException extends CacheException implements Serializable

Class net.sf.ehcache.Statistics extends java.lang.Object implements Serializable

serialVersionUID: 3606940454221918725L

Serialized Fields

cacheName

java.lang.String cacheName

statisticsAccuracy

int statisticsAccuracy

cacheHits

long cacheHits

onDiskHits

long onDiskHits

inMemoryHits

long inMemoryHits

misses

long misses

size

long size

memoryStoreSize

long memoryStoreSize

diskStoreSize

long diskStoreSize

averageGetTime

float averageGetTime

evictionCount

long evictionCount

Class net.sf.ehcache.Status extends java.lang.Object implements Serializable

serialVersionUID: 2732730630423367732L

Serialized Fields

name

java.lang.String name

intValue

int intValue

Package net.sf.ehcache.config

Class net.sf.ehcache.config.InvalidConfigurationException extends CacheException implements Serializable


Package net.sf.ehcache.constructs.blocking

Class net.sf.ehcache.constructs.blocking.LockTimeoutException extends CacheException implements Serializable


Package net.sf.ehcache.distribution

Class net.sf.ehcache.distribution.ConfigurableRMIClientSocketFactory extends java.lang.Object implements Serializable

serialVersionUID: 4920508630517373246L

Serialized Fields

socketTimeoutMillis

int socketTimeoutMillis

Class net.sf.ehcache.distribution.EventMessage extends java.lang.Object implements Serializable

serialVersionUID: -293616939110963629L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Throws:
java.io.IOException
Serialized Fields

event

int event
The event component.


key

java.io.Serializable key
The key component.


wasElementNotNull

boolean wasElementNotNull
Used to check if the value has been GCed

Class net.sf.ehcache.distribution.RemoteCacheException extends CacheException implements Serializable

Class net.sf.ehcache.distribution.RMICachePeer extends java.rmi.server.UnicastRemoteObject implements Serializable

Serialized Fields

hostname

java.lang.String hostname

rmiRegistryPort

java.lang.Integer rmiRegistryPort

remoteObjectPort

java.lang.Integer remoteObjectPort

cache

Ehcache cache

Class net.sf.ehcache.distribution.RMICachePeer_Stub extends java.rmi.server.RemoteStub implements Serializable

serialVersionUID: 2L


Package net.sf.ehcache.hibernate.management.impl

Class net.sf.ehcache.hibernate.management.impl.AggregateCacheRegionStats extends CacheRegionStats implements Serializable

Serialized Fields

nodeCount

int nodeCount

Class net.sf.ehcache.hibernate.management.impl.CacheRegionStats extends java.lang.Object implements Serializable

Serialized Fields

region

java.lang.String region
region


shortName

java.lang.String shortName
shortName


hitCount

long hitCount
shortName


missCount

long missCount
missCount


putCount

long putCount
putCount


hitRatio

double hitRatio
hitRatio


elementCountInMemory

long elementCountInMemory
elementCountInMemory


elementCountOnDisk

long elementCountOnDisk
elementCountOnDisk


elementCountTotal

long elementCountTotal
elementCountTotal


hitLatency

long hitLatency
hitLatency


loadLatency

long loadLatency
loadLatency


latencyCacheHit

long latencyCacheHit
latencyCacheHit


latencyCacheTime

long latencyCacheTime
latencyCacheTime


latencyDbHit

long latencyDbHit
latencyDbHit


latencyDbTime

long latencyDbTime
latencyDbTime

Class net.sf.ehcache.hibernate.management.impl.CollectionStats extends java.lang.Object implements Serializable

Serialized Fields

roleName

java.lang.String roleName
roleName


shortName

java.lang.String shortName
shortName


loadCount

long loadCount
loadCount


fetchCount

long fetchCount
fetchCount


updateCount

long updateCount
updateCount


removeCount

long removeCount
removeCount


recreateCount

long recreateCount
recreateCount

Class net.sf.ehcache.hibernate.management.impl.EntityStats extends java.lang.Object implements Serializable

Serialized Fields

name

java.lang.String name
name


shortName

java.lang.String shortName
shortName


loadCount

long loadCount
loadCount


updateCount

long updateCount
updateCount


insertCount

long insertCount
insertCount


deleteCount

long deleteCount
deleteCount


fetchCount

long fetchCount
fetchCount


optimisticFailureCount

long optimisticFailureCount
optimisticFailureCount

Class net.sf.ehcache.hibernate.management.impl.QueryStats extends java.lang.Object implements Serializable

Serialized Fields

query

java.lang.String query
query


cacheHitCount

long cacheHitCount
cacheHitCount


cacheMissCount

long cacheMissCount
cacheMissCount


cachePutCount

long cachePutCount
cachePutCount


executionCount

long executionCount
executionCount


executionRowCount

long executionRowCount
executionRowCount


executionAvgTime

long executionAvgTime
executionAvgTime


executionMaxTime

long executionMaxTime
executionMaxTime


executionMinTime

long executionMinTime
executionMinTime


Package net.sf.ehcache.hibernate.strategy

Class net.sf.ehcache.hibernate.strategy.AbstractReadWriteEhcacheAccessStrategy.Item extends java.lang.Object implements Serializable

serialVersionUID: 1L

Serialized Fields

value

java.lang.Object value

version

java.lang.Object version

timestamp

long timestamp

Class net.sf.ehcache.hibernate.strategy.AbstractReadWriteEhcacheAccessStrategy.Lock extends java.lang.Object implements Serializable

serialVersionUID: 2L

Serialized Fields

sourceUuid

java.util.UUID sourceUuid

lockId

long lockId

version

java.lang.Object version

timeout

long timeout

concurrent

boolean concurrent

multiplicity

int multiplicity

unlockTimestamp

long unlockTimestamp

Package net.sf.ehcache.management

Class net.sf.ehcache.management.Cache extends java.lang.Object implements Serializable

serialVersionUID: 3477287016924524437L

Serialized Fields

objectName

javax.management.ObjectName objectName

Class net.sf.ehcache.management.CacheConfiguration extends java.lang.Object implements Serializable

serialVersionUID: -8944774509593267228L

Serialized Fields

objectName

javax.management.ObjectName objectName

Class net.sf.ehcache.management.CacheStatistics extends java.lang.Object implements Serializable

serialVersionUID: 8085302752781762030L

Serialized Fields

statistics

Statistics statistics

objectName

javax.management.ObjectName objectName

lastUpdated

long lastUpdated

Package net.sf.ehcache.management.provider

Class net.sf.ehcache.management.provider.MBeanRegistrationProviderException extends java.lang.Exception implements Serializable


Package net.sf.ehcache.store

Class net.sf.ehcache.store.LruMemoryStore.SpoolingLinkedHashMap extends java.util.LinkedHashMap implements Serializable

Class net.sf.ehcache.store.MemoryStoreEvictionPolicy extends java.lang.Object implements Serializable

Serialized Fields

myName

java.lang.String myName

Package net.sf.ehcache.store.chm

Class net.sf.ehcache.store.chm.ConcurrentHashMap extends java.util.AbstractMap<K,V> implements Serializable

serialVersionUID: 7249069246763182397L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream s)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Reconstitute the ConcurrentHashMap instance from a stream (i.e., deserialize it).

Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream s)
                  throws java.io.IOException
Save the state of the ConcurrentHashMap instance to a stream (i.e., serialize it).

Serial Data:
the key (Object) and value (Object) for each key-value mapping, followed by a null pair. The key-value mappings are emitted in no particular order.
Throws:
java.io.IOException
Serialized Fields

segmentMask

int segmentMask
Mask value for indexing into segments. The upper bits of a key's hash code are used to choose the segment.


segmentShift

int segmentShift
Shift value for indexing within segments.


segments

net.sf.ehcache.store.chm.ConcurrentHashMap.Segment<K,V>[] segments
The segments, each of which is a specialized hash table

Class net.sf.ehcache.store.chm.SelectableConcurrentHashMap extends ConcurrentHashMap<java.lang.Object,Element> implements Serializable

Serialized Fields

rndm

java.util.Random rndm

Package net.sf.ehcache.transaction.xa

Class net.sf.ehcache.transaction.xa.EhcacheXAException extends javax.transaction.xa.XAException implements Serializable


Package net.sf.ehcache.util.counter

Class net.sf.ehcache.util.counter.CounterImpl extends java.lang.Object implements Serializable

Serialized Fields

value

java.util.concurrent.atomic.AtomicLong value

Package net.sf.ehcache.util.counter.sampled

Class net.sf.ehcache.util.counter.sampled.SampledCounterImpl extends CounterImpl implements Serializable

Serialized Fields

history

CircularLossyQueue<T> history
The history of this counter


resetOnSample

boolean resetOnSample
Should the counter reset on each sample?


samplerTask

java.util.TimerTask samplerTask

intervalMillis

long intervalMillis

Class net.sf.ehcache.util.counter.sampled.SampledRateCounterImpl extends SampledCounterImpl implements Serializable

Serialized Fields

numeratorValue

long numeratorValue

denominatorValue

long denominatorValue

Class net.sf.ehcache.util.counter.sampled.TimeStampedCounterValue extends java.lang.Object implements Serializable

Serialized Fields

counterValue

long counterValue

timestamp

long timestamp

Package net.sf.ehcache.writer

Class net.sf.ehcache.writer.CacheWriterManagerException extends CacheException implements Serializable


ehcache

true