Class EmbeddedMetadata.EmbeddedLifespanExpirableMetadata

java.lang.Object
org.infinispan.metadata.EmbeddedMetadata
org.infinispan.metadata.EmbeddedMetadata.EmbeddedLifespanExpirableMetadata
All Implemented Interfaces:
Metadata
Direct Known Subclasses:
MemcachedMetadata
Enclosing class:
EmbeddedMetadata

@ProtoTypeId(6) public static class EmbeddedMetadata.EmbeddedLifespanExpirableMetadata extends EmbeddedMetadata
  • Constructor Details

    • EmbeddedLifespanExpirableMetadata

      protected EmbeddedLifespanExpirableMetadata(long lifespan, EntryVersion version)
    • EmbeddedLifespanExpirableMetadata

      @ProtoFactory protected EmbeddedLifespanExpirableMetadata(long lifespan, NumericVersion numericVersion, SimpleClusteredVersion clusteredVersion)
  • Method Details

    • lifespan

      @ProtoField(number=3, defaultValue="-1") 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
      Overrides:
      lifespan in class EmbeddedMetadata
      Returns:
      lifespan of the entry in number of milliseconds
    • 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
      Overrides:
      builder in class EmbeddedMetadata
      Returns:
      instance of Metadata.Builder
    • isEmpty

      public boolean isEmpty()
      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
      Overrides:
      isEmpty in class EmbeddedMetadata
      Returns:
      if this metadata has no actual data to store
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class EmbeddedMetadata
    • toString

      public String toString()
      Overrides:
      toString in class EmbeddedMetadata