Metaspace.Space.Options.setTTL()

Signature

Object setTTL (Object options, long ttl)

Domain

ACTION

Description

Specify the time to live for entries stored into a space using this PutOptions object. WAIT_FOREVER means that an entry will never expire.

Parameters

NameTypeDescription
optionsObjectThe PutOptions object
ttllongTime in milliseconds to use as an entry's time to live.

Returns

TypeDescription
ObjectTime in milliseconds to use as an entry's time to live.

Cautions

none