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 class
EmbeddedMetadata.Builder
static class
EmbeddedMetadata.EmbeddedExpirableMetadata
static class
EmbeddedMetadata.EmbeddedLifespanExpirableMetadata
static class
EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata
static class
EmbeddedMetadata.Externalizer
-
Field Summary
Fields Modifier and Type Field Description static EmbeddedMetadata
EMPTY
protected org.infinispan.container.versioning.EntryVersion
version
-
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)
org.infinispan.container.versioning.SimpleClusteredVersion
getClusteredVersion()
org.infinispan.container.versioning.NumericVersion
getNumericVersion()
int
hashCode()
long
lifespan()
Returns the lifespan of the cache entry with which this metadata object is associated, in milliseconds.long
maxIdle()
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.String
toString()
org.infinispan.container.versioning.EntryVersion
version()
Returns the version of the cache entry with which this metadata object is associated.
-
-
-
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:Metadata
Returns 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: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.
-
version
public org.infinispan.container.versioning.EntryVersion version()
Description copied from interface:Metadata
Returns the version of the cache entry with which this metadata object is associated.
-
getNumericVersion
@ProtoField(number=1) public org.infinispan.container.versioning.NumericVersion getNumericVersion()
-
getClusteredVersion
@ProtoField(number=2) public org.infinispan.container.versioning.SimpleClusteredVersion getClusteredVersion()
-
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
- Returns:
- instance of
Metadata.Builder
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
toString
public String toString()
-
-