Class MetaParamsInternalMetadata

    • Method Detail

      • from

        public static Metadata from​(org.infinispan.functional.impl.MetaParams params)
      • lifespan

        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
        Returns:
        lifespan of the entry in number of milliseconds
      • maxIdle

        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
        Returns:
        maximum idle time of the entry in number of milliseconds
      • version

        public EntryVersion version()
        Description copied from interface: Metadata
        Returns the version of the cache entry with which this metadata object is associated.
        Specified by:
        version in interface Metadata
        Returns:
        version of the entry
      • findMetaParam

        public <T extends MetaParamOptional<T> findMetaParam​(Class<T> type)
        Description copied from interface: MetaParam.Lookup
        Returns a non-empty Optional instance containing a metadata parameter instance that can be assigned to the type Class passed in, or an empty Optional if no metadata can be assigned to that type.
        Specified by:
        findMetaParam in interface MetaParam.Lookup
        Type Parameters:
        T - metadata parameter type