Class MetadataValueImpl<V>

    • Constructor Detail

      • MetadataValueImpl

        public MetadataValueImpl​(long created,
                                 int lifespan,
                                 long lastUsed,
                                 int maxIdle,
                                 long version,
                                 V value)
    • Method Detail

      • getCreated

        public long getCreated()
        Specified by:
        getCreated in interface Metadata
        Time when entry was created. -1 for immortal entries.
      • getLifespan

        public int getLifespan()
        Specified by:
        getLifespan in interface Metadata
        Lifespan of the entry in seconds. Negative values are interpreted as unlimited lifespan.
      • getLastUsed

        public long getLastUsed()
        Specified by:
        getLastUsed in interface Metadata
        Time when entry was last used. -1 for immortal entries.
      • getMaxIdle

        public int getMaxIdle()
        Specified by:
        getMaxIdle in interface Metadata
        The maximum amount of time (in seconds) this key is allowed to be idle for before it is considered as expired.