public class L1Metadata extends Object implements 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.Metadata.Builder| Constructor and Description |
|---|
L1Metadata(Metadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
Metadata.Builder |
builder()
Returns an instance of
Metadata.Builder which can be used to build
new instances of Metadata instance which are full copies of
this Metadata. |
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 |
metadata() |
EntryVersion |
version()
Returns the version of the cache entry with which this metadata object
is associated.
|
public L1Metadata(Metadata metadata)
public long lifespan()
Metadatapublic long maxIdle()
Metadatapublic EntryVersion version()
Metadatapublic Metadata.Builder builder()
MetadataMetadata.Builder which can be used to build
new instances of Metadata instance which are full copies of
this Metadata.builder in interface MetadataMetadata.Builderpublic Metadata metadata()
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.