public final class MetaParamsInternalMetadata extends Object implements InternalMetadata, MetaParam.Lookup
| Modifier and Type | Class and Description |
|---|---|
static class |
MetaParamsInternalMetadata.Externalizer |
Metadata.Builder| 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 |
created() |
long |
expiryTime() |
<T> Optional<T> |
findMetaParam(Class<T> type)
|
static Metadata |
from(MetaParams params) |
boolean |
isExpired(long now) |
long |
lastUsed() |
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.
|
String |
toString() |
EntryVersion |
version()
Returns the version of the cache entry with which this metadata object
is associated.
|
public static Metadata from(MetaParams params)
public long created()
created in interface InternalMetadatapublic long lastUsed()
lastUsed in interface InternalMetadatapublic boolean isExpired(long now)
isExpired in interface InternalMetadatapublic long expiryTime()
expiryTime in interface InternalMetadatapublic 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 <T> Optional<T> findMetaParam(Class<T> type)
MetaParam.LookupOptional instance containing a metadata
parameter instance that can be assigned to the type Class
passed in, or an empty Optional if no metadata can be assigned
to that type.findMetaParam in interface MetaParam.LookupT - metadata parameter typeCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.