Interface Metadata

  • All Known Subinterfaces:
    MetadataValue<V>, VersionedMetadata

    public interface Metadata
    Represents metadata about an entry, such as creation and access times and expiration information. Time values are server time representations as returned by TimeService.wallClockTime()
    Since:
    9.0
    Author:
    Tristan Tarrant
    • Method Detail

      • getCreated

        long getCreated()
        Returns:
        Time when entry was created. -1 for immortal entries.
      • getLifespan

        int getLifespan()
        Returns:
        Lifespan of the entry in seconds. Negative values are interpreted as unlimited lifespan.
      • getLastUsed

        long getLastUsed()
        Returns:
        Time when entry was last used. -1 for immortal entries.
      • getMaxIdle

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