|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.objectgrid.TTLType
public class TTLType
Every BackingMap in ObjectGrid has a built in timed based evictor that is referred to as "time to live" evictor or TTL evictor. Each BackingMap entry has an expiration time that determines how long the entry is allowed to live in the BackingMap. When the expiration time is reached, the TTL evictor causes the expired entry to be evicted from the BackingMap. This class is used to define the TTLType value constants that determine how the the expiration time is computed for a map entry.
BackingMap.setTtlEvictorType(TTLType)
,
Serialized FormField Summary | |
---|---|
static TTLType |
CREATION_TIME
A TTLType.CREATION_TIME indicates an entry expiration time is the sum of the creation time of the entry plus the "time to live" value. |
static TTLType |
LAST_ACCESS_TIME
A TTLType.LAST_ACCESS_TIME indicates an entry expiration time is the sum of the last access time of the entry plus the "time to live" value. |
static TTLType |
LAST_UPDATE_TIME
A TTLType.LAST_UPDATE_TIME indicates an entry expiration time is the sum of the last update time of the entry plus the "time to live" value. |
static TTLType |
NONE
A TTLType.NONE indicates an entry has no expiration time and is allowed to live in the BackingMap until the application explicitly removes or invalidates the entry or a user defined evictor evicts it. |
Method Summary | |
---|---|
byte |
getId()
Get the raw value of this TTLType. |
String |
toString()
Returns a string representation of the TTLType . |
static TTLType |
valueOf(byte id)
Given the raw value of a TTLType, this method returns a TTLType object, or null if the raw value does not match an existing type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final TTLType NONE
public static final TTLType CREATION_TIME
BackingMap.setTimeToLive(int)
method and is the same for every entry and can not be
changed by the application by using the ObjectMap.setTimeToLive(int)
method.
It can only be set prior to ObjectGrid initialization
by use of the BackingMap.setTimeToLive(int)
method.
BackingMap.setTimeToLive(int)
public static final TTLType LAST_ACCESS_TIME
BackingMap.setTimeToLive(int)
method and the default can be overridden
by the application by using the ObjectMap.setTimeToLive(int)
method.
BackingMap.setTimeToLive(int)
,
ObjectMap.setTimeToLive(int)
public static final TTLType LAST_UPDATE_TIME
BackingMap.setTimeToLive(int)
method and the default can be overridden
by the application by using the ObjectMap.setTimeToLive(int)
method.
The difference between this TTLType and LAST_ACCESS_TIME is that fetch operations do not
cause the entry expiration time to be updated.
BackingMap.setTimeToLive(int)
,
ObjectMap.setTimeToLive(int)
Method Detail |
---|
public static final TTLType valueOf(byte id)
id
- the raw value of a TTLType
public byte getId()
public String toString()
TTLType
.
toString
in class Object
TTLType
.
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |