Package com.arangodb.model
Class TtlIndexOptions
- java.lang.Object
-
- com.arangodb.model.IndexOptions<TtlIndexOptions>
-
- com.arangodb.model.TtlIndexOptions
-
public final class TtlIndexOptions extends IndexOptions<TtlIndexOptions>
- Author:
- Heiko Kernbach
-
-
Constructor Summary
Constructors Constructor Description TtlIndexOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TtlIndexOptions
expireAfter(Integer expireAfter)
Integer
getExpireAfter()
Iterable<String>
getFields()
IndexType
getType()
-
Methods inherited from class com.arangodb.model.IndexOptions
getInBackground, getName, inBackground, name
-
-
-
-
Method Detail
-
getType
public IndexType getType()
-
expireAfter
public TtlIndexOptions expireAfter(Integer expireAfter)
- Parameters:
expireAfter
- The time (in seconds) after a document’s creation after which the documents count as “expired”.- Returns:
- options
-
getExpireAfter
public Integer getExpireAfter()
-
-