Package org.infinispan.metadata
Class EmbeddedMetadata.EmbeddedExpirableMetadata
java.lang.Object
org.infinispan.metadata.EmbeddedMetadata
org.infinispan.metadata.EmbeddedMetadata.EmbeddedExpirableMetadata
- All Implemented Interfaces:
Metadata
- Enclosing class:
- EmbeddedMetadata
@ProtoTypeId(5)
public static class EmbeddedMetadata.EmbeddedExpirableMetadata
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
-
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()
Methods inherited from class org.infinispan.metadata.EmbeddedMetadata
getClusteredVersion, getNumericVersion, version
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.metadata.Metadata
updateCreationTimestamp
-
Method Details
-
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
-
maxIdle
@ProtoField(number=4, 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 interfaceMetadata
- Overrides:
maxIdle
in classEmbeddedMetadata
- Returns:
- maximum idle time of the entry in number of milliseconds
-
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
- Overrides:
equals
in classEmbeddedMetadata
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEmbeddedMetadata
-
toString
- Overrides:
toString
in classEmbeddedMetadata
-