Annotation Interface TTL


@Target(TYPE) @Retention(RUNTIME) public @interface TTL
Specifies TTL settings fot the annotated entity.
      Example:

      @TTL(field = "createdAt", interval = "PT12H")
      public class LogEntry { ... }
 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Field, which will be used to calculate if the row might be deleted Accepted dbTypes of columns: Date Datetime Timestamp
    Interval in ISO 8601 format defining lifespan of the row
  • Element Details

    • field

      String field
      Field, which will be used to calculate if the row might be deleted Accepted dbTypes of columns:
      • Date
      • Datetime
      • Timestamp
    • interval

      String interval
      Interval in ISO 8601 format defining lifespan of the row