@Experimental @ProtoTypeId(value=1003) public final class MetaParamsInternalMetadata extends Object implements InternalMetadata, MetaParam.Lookup
| Modifier and Type | Class and Description |
|---|---|
static class |
MetaParamsInternalMetadata.Builder |
| Modifier and Type | Method and Description |
|---|---|
MetaParamsInternalMetadata.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. |
CounterConfiguration |
counterConfiguration() |
long |
created() |
static MetaParamsInternalMetadata |
empty() |
boolean |
equals(Object o) |
long |
expiryTime() |
<T extends MetaParam> |
findMetaParam(Class<T> type)
|
static Metadata |
from(MetaParams params) |
static MetaParamsInternalMetadata.Builder |
getBuilder(MetaParamsInternalMetadata metadata) |
int |
hashCode() |
boolean |
isEmpty() |
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)
@ProtoField(number=3,
defaultValue="-1")
public long created()
created in interface InternalMetadata@ProtoField(number=4,
defaultValue="-1")
public long lastUsed()
lastUsed in interface InternalMetadatapublic boolean isExpired(long now)
isExpired in interface InternalMetadatapublic long expiryTime()
expiryTime in interface InternalMetadata@ProtoField(number=5,
defaultValue="-1")
public long lifespan()
Metadata@ProtoField(number=6,
defaultValue="-1")
public long maxIdle()
Metadata@ProtoField(number=7) public CounterConfiguration counterConfiguration()
public EntryVersion version()
Metadatapublic MetaParamsInternalMetadata.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 extends MetaParam> 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 typepublic boolean isEmpty()
public static MetaParamsInternalMetadata.Builder getBuilder(MetaParamsInternalMetadata metadata)
public static MetaParamsInternalMetadata empty()
Copyright © 2022 JBoss by Red Hat. All rights reserved.