Uses of Class
oracle.kv.table.TimeToLive
Packages that use TimeToLive
-
Uses of TimeToLive in oracle.kv.table
Fields in oracle.kv.table declared as TimeToLiveModifier and TypeFieldDescriptionstatic final TimeToLive
TimeToLive.DO_NOT_EXPIRE
A convenience constant that can be used as an argument toRow.setTTL(oracle.kv.table.TimeToLive)
to indicate that the row should not expire.Methods in oracle.kv.table that return TimeToLiveModifier and TypeMethodDescriptionstatic TimeToLive
TimeToLive.fromExpirationTime
(long expirationTime, long referenceTime) Returns an instance of TimeToLive based on an absolute expiration time and a reference time.Table.getDefaultTTL()
Returns the default TimeToLive for the table or null if not set.Row.getTTL()
Returns the time to live (TTL) value for this row or null if it has not been set by a call toRow.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 TimeToLiveModifier and TypeMethodDescriptionstatic TimeUnit
TimeToLive.getTTLUnit
(TimeToLive ttl) Returns the TimeUnit associated with aTimeToLive
, or {TimeUnit#DAYS} if the ttl is null.static int
TimeToLive.getTTLValue
(TimeToLive ttl) Returns the numeric duration value associated with aTimeToLive
, 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.