Annotation Interface TtlIndexed


@Retention(RUNTIME) @Target(FIELD) public @interface TtlIndexed
Annotation to mark a field to be indexed using ArangoDB's Ttl index.
Author:
Dmitry Krasaev
  • 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 annotated field after which the documents count as expired.
  • Element Details

    • expireAfter

      int expireAfter
      The time interval (in seconds) from the point in time of the value of the annotated 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