net.sf.ehcache
Class SerializationModeElementData

java.lang.Object
  extended by org.terracotta.cache.value.AbstractStatelessTimestampedValue<Object>
      extended by net.sf.ehcache.AbstractElementData
          extended by net.sf.ehcache.SerializationModeElementData
All Implemented Interfaces:
TimestampedValue<Object>

public class SerializationModeElementData
extends AbstractElementData

Author:
Alex Snaps

Field Summary
 
Fields inherited from class net.sf.ehcache.AbstractElementData
cacheDefaultLifespan, creationTime, hitCount, lastAccessTime, lastUpdateTime, timeToIdle, timeToLive, value, version
 
Fields inherited from class org.terracotta.cache.value.AbstractStatelessTimestampedValue
UNUSED
 
Fields inherited from interface org.terracotta.cache.TimestampedValue
NEVER_EXPIRE
 
Constructor Summary
SerializationModeElementData(net.sf.ehcache.Element element)
           
SerializationModeElementData(Object value, long version, long creationTime, long lastAccessTime, long hitCount, boolean cacheDefaultLifespan, int timeToLive, int timeToIdle, long lastUpdateTime)
           
 
Method Summary
static AbstractElementData create(ObjectInputStream ois)
           
protected  CapacityEvictionPolicyData fastGetCapacityEvictionPolicyData()
           
 CapacityEvictionPolicyData getCapacityEvictionPolicyData()
          Retrieves this value's capacity eviction policy data.
 void setCapacityEvictionPolicyData(CapacityEvictionPolicyData capacityEvictionPolicyData)
          Sets this value's capacity eviction policy data.
 
Methods inherited from class net.sf.ehcache.AbstractElementData
createElement, expiresAt, getCreateTime, getLastAccessedTime, getValue, setLastAccessedTimeInternal, write
 
Methods inherited from class org.terracotta.cache.value.AbstractStatelessTimestampedValue
equals, hashCode, isExpired, markUsed, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializationModeElementData

public SerializationModeElementData(net.sf.ehcache.Element element)

SerializationModeElementData

public SerializationModeElementData(Object value,
                                    long version,
                                    long creationTime,
                                    long lastAccessTime,
                                    long hitCount,
                                    boolean cacheDefaultLifespan,
                                    int timeToLive,
                                    int timeToIdle,
                                    long lastUpdateTime)
Method Detail

create

public static AbstractElementData create(ObjectInputStream ois)
                                  throws IOException,
                                         ClassNotFoundException
Throws:
IOException
ClassNotFoundException

setCapacityEvictionPolicyData

public final void setCapacityEvictionPolicyData(CapacityEvictionPolicyData capacityEvictionPolicyData)
Description copied from interface: TimestampedValue
Sets this value's capacity eviction policy data.

Specified by:
setCapacityEvictionPolicyData in interface TimestampedValue<Object>
Specified by:
setCapacityEvictionPolicyData in class AbstractElementData
Parameters:
capacityEvictionPolicyData - the new data

getCapacityEvictionPolicyData

public final CapacityEvictionPolicyData getCapacityEvictionPolicyData()
Description copied from interface: TimestampedValue
Retrieves this value's capacity eviction policy data.

Specified by:
getCapacityEvictionPolicyData in interface TimestampedValue<Object>
Specified by:
getCapacityEvictionPolicyData in class AbstractElementData
Returns:
this value's data

fastGetCapacityEvictionPolicyData

protected final CapacityEvictionPolicyData fastGetCapacityEvictionPolicyData()
Specified by:
fastGetCapacityEvictionPolicyData in class AbstractElementData


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.