IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1

com.ibm.websphere.objectgrid
TTLType

java.lang.Object
  |
  +--com.ibm.websphere.objectgrid.TTLType


Every BackingMap in ObjectGrid has a built in timed based evictor that is refered 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.
See Also:
    setTtlEvictorType(TTLType)


Field Summary
public  TTLTypeNONE
           A TTLType.NONE indicates an entry has no expiration time and .
public  TTLTypeCREATION_TIME
           A TTLType.CREATION_TIME indicates an entry expiration time is the sum.
public  TTLTypeLAST_ACCESS_TIME
           A TTLType.LAST_ACCESS_TIME indicates an entry expiration time is the sum.

Method Summary
public  StringtoString()
           Returns a string representation of the TTLType.

Inherited Methods

Methods inherited from java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

NONE

public 
  static 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.

CREATION_TIME

public 
  static 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. The "time to live" value is set using the 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.

LAST_ACCESS_TIME

public 
  static 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. By default, the time to live value is set using the BackingMap#setTimeToLive(int) method and the default can be overridden by the application by using the ObjectMap#setTimeToLive(int) method.

Method Detail

toString

public String toString()
Returns a string representation of the TTLType.


Returns:
     a string representation of the TTLType.


IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1