@ProtoTypeId(value=4) public class EmbeddedMetadata extends Object implements Metadata
Modifier and Type | Class and Description |
---|---|
static class |
EmbeddedMetadata.Builder |
static class |
EmbeddedMetadata.EmbeddedExpirableMetadata |
static class |
EmbeddedMetadata.EmbeddedLifespanExpirableMetadata |
static class |
EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata |
static class |
EmbeddedMetadata.Externalizer |
Modifier and Type | Field and Description |
---|---|
static EmbeddedMetadata |
EMPTY |
protected EntryVersion |
version |
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 . |
boolean |
equals(Object o) |
SimpleClusteredVersion |
getClusteredVersion() |
NumericVersion |
getNumericVersion() |
int |
hashCode() |
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 final EmbeddedMetadata EMPTY
protected final EntryVersion version
public long lifespan()
Metadata
public long maxIdle()
Metadata
public EntryVersion version()
Metadata
@ProtoField(number=1) public NumericVersion getNumericVersion()
@ProtoField(number=2) public SimpleClusteredVersion getClusteredVersion()
public Metadata.Builder builder()
Metadata
Metadata.Builder
which can be used to build
new instances of Metadata
instance which are full copies of
this Metadata
.builder
in interface Metadata
Metadata.Builder
Copyright © 2021 JBoss by Red Hat. All rights reserved.