Annotation Interface Expiration


@Documented @Retention(RUNTIME) @Target(FIELD) public @interface Expiration
Demarcates a property to be used as expiration field. Expiration can be specified in two flavors: as an offset in seconds from the current time or as an absolute Unix timestamp.

Client system time must be synchronized with Aerospike server system time, otherwise expiration behaviour will be unpredictable.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    An optional flag indicating whether the expiration is specified as Unix time.
  • Element Details

    • unixTime

      boolean unixTime
      An optional flag indicating whether the expiration is specified as Unix time. By default, an offset in seconds from the current time is used.
      Default:
      false