# Uses of Class
oracle.kv.table.TimeToLive

Packages that use TimeToLive
Package
Description
oracle.kv.table
Table support for Oracle NoSQL Database.

- ## Uses of TimeToLive in oracle.kv.table

  Fields in oracle.kv.table declared as TimeToLive
  Modifier and Type
  Field
  Description
  `static final TimeToLive`
  TimeToLive.`DO_NOT_EXPIRE`
  A convenience constant that can be used as an argument to `Row.setTTL(oracle.kv.table.TimeToLive)` to indicate that the row should not expire.
  Methods in oracle.kv.table that return TimeToLive
  Modifier and Type
  Method
  Description
  `static TimeToLive`
  TimeToLive.`fromExpirationTime(long expirationTime, long referenceTime)`
  Returns an instance of TimeToLive based on an absolute expiration time and a reference time.
  `TimeToLive`
  Table.`getDefaultTTL()`
  Returns the default TimeToLive for the table or null if not set.
  `TimeToLive`
  Row.`getTTL()`
  Returns the time to live (TTL) value for this row or null if it has not been set by a call to `Row.setTTL(oracle.kv.table.TimeToLive)`.
  `static TimeToLive`
  TimeToLive.`ofDays(long days)`
  Creates a duration using a period of 24 hour days.
  `static TimeToLive`
  TimeToLive.`ofHours(long hours)`
  Creates a duration using a period of hours.
  Methods in oracle.kv.table with parameters of type TimeToLive
  Modifier and Type
  Method
  Description
  `static TimeUnit`
  TimeToLive.`getTTLUnit(TimeToLive ttl)`
  Returns the TimeUnit associated with a `TimeToLive`, or {TimeUnit#DAYS} if the ttl is null.
  `static int`
  TimeToLive.`getTTLValue(TimeToLive ttl)`
  Returns the numeric duration value associated with a `TimeToLive`, or 0 if the ttl is null.
  `void`
  Row.`setTTL(TimeToLive ttl)`
  Sets a time to live (TTL) value for the row to be used when the row is inserted into a store.