Package org.infinispan.metadata
Class EmbeddedMetadata.EmbeddedLifespanExpirableMetadata
- java.lang.Object
-
- org.infinispan.metadata.EmbeddedMetadata
-
- org.infinispan.metadata.EmbeddedMetadata.EmbeddedLifespanExpirableMetadata
-
- All Implemented Interfaces:
Metadata
- Enclosing class:
- EmbeddedMetadata
@ProtoTypeId(6) public static class EmbeddedMetadata.EmbeddedLifespanExpirableMetadata extends EmbeddedMetadata
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.infinispan.metadata.EmbeddedMetadata
EmbeddedMetadata.Builder, EmbeddedMetadata.EmbeddedExpirableMetadata, EmbeddedMetadata.EmbeddedLifespanExpirableMetadata, EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata, EmbeddedMetadata.Externalizer
-
-
Field Summary
-
Fields inherited from class org.infinispan.metadata.EmbeddedMetadata
EMPTY, version
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EmbeddedLifespanExpirableMetadata(long lifespan, org.infinispan.container.versioning.EntryVersion version)
protected
EmbeddedLifespanExpirableMetadata(long lifespan, org.infinispan.container.versioning.NumericVersion numericVersion, org.infinispan.container.versioning.SimpleClusteredVersion clusteredVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metadata.Builder
builder()
Returns an instance ofMetadata.Builder
which can be used to build new instances ofMetadata
instance which are full copies of thisMetadata
.boolean
equals(Object o)
int
hashCode()
long
lifespan()
Returns the lifespan of the cache entry with which this metadata object is associated, in milliseconds.String
toString()
-
Methods inherited from class org.infinispan.metadata.EmbeddedMetadata
getClusteredVersion, getNumericVersion, maxIdle, version
-
-
-
-
Constructor Detail
-
EmbeddedLifespanExpirableMetadata
protected EmbeddedLifespanExpirableMetadata(long lifespan, org.infinispan.container.versioning.EntryVersion version)
-
EmbeddedLifespanExpirableMetadata
@ProtoFactory protected EmbeddedLifespanExpirableMetadata(long lifespan, org.infinispan.container.versioning.NumericVersion numericVersion, org.infinispan.container.versioning.SimpleClusteredVersion clusteredVersion)
-
-
Method Detail
-
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 interfaceMetadata
- Overrides:
lifespan
in classEmbeddedMetadata
- Returns:
- lifespan of the entry in number of milliseconds
-
builder
public Metadata.Builder builder()
Description copied from interface:Metadata
Returns an instance ofMetadata.Builder
which can be used to build new instances ofMetadata
instance which are full copies of thisMetadata
.- Specified by:
builder
in interfaceMetadata
- Overrides:
builder
in classEmbeddedMetadata
- Returns:
- instance of
Metadata.Builder
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classEmbeddedMetadata
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classEmbeddedMetadata
-
toString
public String toString()
- Overrides:
toString
in classEmbeddedMetadata
-
-