Class InternalMetadataImpl

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

@Deprecated(forRemoval=true) public class InternalMetadataImpl extends Object implements InternalMetadata
Deprecated, for removal: This API element is subject to removal in a future version.
Since:
6.0
Author:
Mircea Markus
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Nested classes/interfaces inherited from interface org.infinispan.metadata.Metadata

    Metadata.Builder
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    InternalMetadataImpl(Metadata actual, long created, long lastUsed)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns an instance of Metadata.Builder which can be used to build new instances of Metadata instance which are full copies of this Metadata.
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static Metadata
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    isExpired(long now)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the lifespan of the cache entry with which this metadata object is associated, in milliseconds.
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
    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.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the version of the cache entry with which this metadata object is associated.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.infinispan.metadata.Metadata

    updateCreationTimestamp
  • Constructor Details

    • InternalMetadataImpl

      public InternalMetadataImpl()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • InternalMetadataImpl

      public InternalMetadataImpl(InternalCacheEntry ice)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • InternalMetadataImpl

      public InternalMetadataImpl(InternalCacheValue icv)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • InternalMetadataImpl

      public InternalMetadataImpl(Metadata actual, long created, long lastUsed)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • lifespan

      public long lifespan()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future 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()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future version.
      Specified by:
      created in interface InternalMetadata
    • lastUsed

      public long lastUsed()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      lastUsed in interface InternalMetadata
    • actual

      public Metadata actual()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • expiryTime

      public long expiryTime()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      expiryTime in interface InternalMetadata
    • isExpired

      public boolean isExpired(long now)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isExpired in interface InternalMetadata
    • equals

      public boolean equals(Object o)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object
    • extractMetadata

      public static Metadata extractMetadata(Metadata metadata)
      Deprecated, for removal: This API element is subject to removal in a future version.