Package org.infinispan.metadata.impl
Class L1Metadata
java.lang.Object
org.infinispan.metadata.impl.L1Metadata
- All Implemented Interfaces:
Metadata
Metadata
implementation that must be passed to the DataContainer.put(Object, Object, org.infinispan.metadata.Metadata)
when the entry to store
is a L1 entry.- Since:
- 7.1
- Author:
- Pedro Ruivo
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.metadata.Metadata
Metadata.Builder
-
Constructor 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
isEmpty()
Returns whether this metadata is effectively empty, that is that persisting or replicating it to another node would be no different then sending a null metadata object.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.metadata()
version()
Returns the version of the cache entry with which this metadata object is associated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.metadata.Metadata
updateCreationTimestamp
-
Constructor Details
-
L1Metadata
-
-
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. -
isEmpty
public boolean isEmpty()Description copied from interface:Metadata
Returns whether this metadata is effectively empty, that is that persisting or replicating it to another node would be no different then sending a null metadata object. -
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
-
metadata
-