Class InternalMetadataImpl

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

@Deprecated(forRemoval=true, since="10.0") 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 Link icon

    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 Link icon

    Metadata.Builder
  • Constructor Summary Link icon

    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 Link icon

    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
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns whether this metadata is effectively empty, that is that persisting or replicating it to another node would be no different then sending a null metadata object.
    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 Link icon

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

    Methods inherited from interface org.infinispan.metadata.Metadata Link icon

    updateCreationTimestamp
  • Constructor Details Link icon

    • InternalMetadataImpl Link icon

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

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

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

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

    • lifespan Link icon

      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 Link icon

      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 Link icon

      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
    • isEmpty Link icon

      public boolean isEmpty()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Metadata
      Returns whether this metadata is effectively empty, that is that persisting or replicating it to another node would be no different then sending a null metadata object.
      Specified by:
      isEmpty in interface Metadata
      Returns:
      if this metadata has no actual data to store
    • builder Link icon

      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 Link icon

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

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

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

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

      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 Link icon

      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 Link icon

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

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

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