Class EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata

java.lang.Object
org.infinispan.metadata.EmbeddedMetadata
org.infinispan.metadata.EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata
All Implemented Interfaces:
Metadata
Enclosing class:
EmbeddedMetadata

@ProtoTypeId(7) public static class EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata extends EmbeddedMetadata
  • Method Details

    • maxIdle

      @ProtoField(number=3, defaultValue="-1") 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
      Overrides:
      maxIdle in class EmbeddedMetadata
      Returns:
      maximum idle time of the entry in number of milliseconds
    • 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
    • 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
    • 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