Class TTLIndexOptions


  • public class TTLIndexOptions
    extends IndexOptions
    Index option for Time to live (ttl) index type.
    • Constructor Detail

      • TTLIndexOptions

        public TTLIndexOptions()
    • Method Detail

      • getExpireAfter

        public Long getExpireAfter()
      • expireAfter

        public TTLIndexOptions expireAfter​(Long expireAfter)
        Parameters:
        expireAfter - Number of seconds to be added to the timestamp attribute value of each document. If documents have reached their expiration timepoint, they will eventually get deleted by a background process.
        Returns:
        options