Class EmbeddedMetadata.EmbeddedExpirableMetadata

    • Method Detail

      • lifespan

        @ProtoField(number=3,
                    defaultValue="-1")
        public long lifespan()
        Description copied from interface: Metadata
        Returns the lifespan of the cache entry with which this metadata object is associated, in milliseconds. Negative values are interpreted as unlimited lifespan.
        Specified by:
        lifespan in interface Metadata
        Overrides:
        lifespan in class EmbeddedMetadata
        Returns:
        lifespan of the entry in number of milliseconds
      • maxIdle

        @ProtoField(number=4,
                    defaultValue="-1")
        public long maxIdle()
        Description copied from interface: Metadata
        Returns the the maximum amount of time that the cache entry associated with this metadata object is allowed to be idle for before it is considered as expired, in milliseconds.
        Specified by:
        maxIdle in interface Metadata
        Overrides:
        maxIdle in class EmbeddedMetadata
        Returns:
        maximum idle time of the entry in number of milliseconds