Package org.infinispan.metadata.impl
Class L1Metadata
- java.lang.Object
-
- org.infinispan.metadata.impl.L1Metadata
-
- All Implemented Interfaces:
Metadata
public class L1Metadata extends Object implements Metadata
Metadataimplementation that must be passed to theDataContainer.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
Constructors Constructor Description L1Metadata(Metadata metadata)
-
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.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.Metadatametadata()EntryVersionversion()Returns the version of the cache entry with which this metadata object is associated.
-
-
-
Constructor Detail
-
L1Metadata
public L1Metadata(Metadata metadata)
-
-
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 EntryVersion version()
Description copied from interface:MetadataReturns the version of the cache entry with which this metadata object is associated.
-
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
-
metadata
public Metadata metadata()
-
-