Package org.infinispan.metadata
Class EmbeddedMetadata
- java.lang.Object
-
- org.infinispan.metadata.EmbeddedMetadata
-
- All Implemented Interfaces:
Metadata
- Direct Known Subclasses:
EmbeddedMetadata.EmbeddedExpirableMetadata,EmbeddedMetadata.EmbeddedLifespanExpirableMetadata,EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata
@ProtoTypeId(4) public class EmbeddedMetadata extends Object implements Metadata
Metadata class for embedded caches.- Since:
- 5.3
- Author:
- Galder ZamarreƱo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmbeddedMetadata.Builderstatic classEmbeddedMetadata.EmbeddedExpirableMetadatastatic classEmbeddedMetadata.EmbeddedLifespanExpirableMetadatastatic classEmbeddedMetadata.EmbeddedMaxIdleExpirableMetadatastatic classEmbeddedMetadata.Externalizer
-
Field Summary
Fields Modifier and Type Field Description static EmbeddedMetadataEMPTYprotected org.infinispan.container.versioning.EntryVersionversion
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metadata.Builderbuilder()Returns an instance ofMetadata.Builderwhich can be used to build new instances ofMetadatainstance which are full copies of thisMetadata.booleanequals(Object o)org.infinispan.container.versioning.SimpleClusteredVersiongetClusteredVersion()org.infinispan.container.versioning.NumericVersiongetNumericVersion()inthashCode()longlifespan()Returns the lifespan of the cache entry with which this metadata object is associated, in milliseconds.longmaxIdle()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.StringtoString()org.infinispan.container.versioning.EntryVersionversion()Returns the version of the cache entry with which this metadata object is associated.-
Methods inherited from interface org.infinispan.metadata.Metadata
updateCreationTimestamp
-
-
-
-
Field Detail
-
EMPTY
public static final EmbeddedMetadata EMPTY
-
version
protected final org.infinispan.container.versioning.EntryVersion version
-
-
Method Detail
-
lifespan
public long lifespan()
Description copied from interface:MetadataReturns the lifespan of the cache entry with which this metadata object is associated, in milliseconds. Negative values are interpreted as unlimited lifespan.
-
maxIdle
public long maxIdle()
Description copied from interface:MetadataReturns 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.
-
version
public org.infinispan.container.versioning.EntryVersion version()
Description copied from interface:MetadataReturns the version of the cache entry with which this metadata object is associated.
-
getNumericVersion
@ProtoField(1) public org.infinispan.container.versioning.NumericVersion getNumericVersion()
-
getClusteredVersion
@ProtoField(2) public org.infinispan.container.versioning.SimpleClusteredVersion getClusteredVersion()
-
builder
public Metadata.Builder builder()
Description copied from interface:MetadataReturns an instance ofMetadata.Builderwhich can be used to build new instances ofMetadatainstance which are full copies of thisMetadata.- Specified by:
builderin interfaceMetadata- Returns:
- instance of
Metadata.Builder
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
toString
public String toString()
-
-