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
Metadata class for embedded caches.
- Since:
- 5.3
- Author:
- Galder ZamarreƱo
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns an instance ofMetadata.Builder
which can be used to build new instances ofMetadata
instance which are full copies of thisMetadata
.boolean
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.toString()
version()
Returns the version of the cache entry with which this metadata object is associated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.metadata.Metadata
updateCreationTimestamp
-
Field Details
-
EMPTY
-
version
-
-
Method Details
-
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
Description copied from interface:Metadata
Returns the version of the cache entry with which this metadata object is associated. -
getNumericVersion
-
getClusteredVersion
-
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
-
hashCode
public int hashCode() -
toString
-