Annotation Interface TtlIndex


@Retention(RUNTIME) @Target(TYPE) public @interface TtlIndex
Annotation to define given field to be indexed using ArangoDB's TTL index.
Author:
Michele Rastelli
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    attribute path
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The time interval (in seconds) from the point in time of the value of the field specified in {@link this#field()} after which the documents count as expired.
  • Element Details

    • field

      String field
      attribute path
    • expireAfter

      int expireAfter
      The time interval (in seconds) from the point in time of the value of the field specified in {@link this#field()} after which the documents count as expired. Default is 0, which means that the documents expire as soon as the server time passes the point in time stored in the document attribute.
      Default:
      0