Class InternalMetadataImpl

java.lang.Object
org.infinispan.metadata.impl.InternalMetadataImpl
All Implemented Interfaces:
InternalMetadata, Metadata

@Deprecated public class InternalMetadataImpl extends Object implements InternalMetadata
Deprecated.
Since:
6.0
Author:
Mircea Markus
  • Constructor Details

    • InternalMetadataImpl

      public InternalMetadataImpl()
      Deprecated.
    • InternalMetadataImpl

      public InternalMetadataImpl(InternalCacheEntry ice)
      Deprecated.
    • InternalMetadataImpl

      public InternalMetadataImpl(InternalCacheValue icv)
      Deprecated.
    • InternalMetadataImpl

      public InternalMetadataImpl(Metadata actual, long created, long lastUsed)
      Deprecated.
  • Method Details

    • lifespan

      public long lifespan()
      Deprecated.
      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()
      Deprecated.
      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()
      Deprecated.
      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()
      Deprecated.
      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
    • created

      public long created()
      Deprecated.
      Specified by:
      created in interface InternalMetadata
    • lastUsed

      public long lastUsed()
      Deprecated.
      Specified by:
      lastUsed in interface InternalMetadata
    • actual

      public Metadata actual()
      Deprecated.
    • expiryTime

      public long expiryTime()
      Deprecated.
      Specified by:
      expiryTime in interface InternalMetadata
    • isExpired

      public boolean isExpired(long now)
      Deprecated.
      Specified by:
      isExpired in interface InternalMetadata
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • extractMetadata

      public static Metadata extractMetadata(Metadata metadata)
      Deprecated.