Class L1Metadata

java.lang.Object
org.infinispan.metadata.impl.L1Metadata
All Implemented Interfaces:
Metadata

public class L1Metadata extends Object implements Metadata
Metadata implementation that must be passed to the DataContainer.put(Object, Object, org.infinispan.metadata.Metadata) when the entry to store is a L1 entry.
Since:
7.1
Author:
Pedro Ruivo
  • Constructor Details

    • L1Metadata

      public L1Metadata(Metadata metadata)
  • Method Details

    • 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
    • builder

      public Metadata.Builder builder()
      Description copied from interface: Metadata
      Returns an instance of Metadata.Builder which can be used to build new instances of Metadata instance which are full copies of this Metadata.
      Specified by:
      builder in interface Metadata
      Returns:
      instance of Metadata.Builder
    • metadata

      public Metadata metadata()