@ProtoTypeId(value=6) public static class EmbeddedMetadata.EmbeddedLifespanExpirableMetadata extends EmbeddedMetadata
EmbeddedMetadata.Builder, EmbeddedMetadata.EmbeddedExpirableMetadata, EmbeddedMetadata.EmbeddedLifespanExpirableMetadata, EmbeddedMetadata.EmbeddedMaxIdleExpirableMetadata, EmbeddedMetadata.ExternalizerEMPTY, version| Modifier | Constructor and Description |
|---|---|
protected |
EmbeddedLifespanExpirableMetadata(long lifespan,
EntryVersion version) |
protected |
EmbeddedLifespanExpirableMetadata(long lifespan,
NumericVersion numericVersion,
SimpleClusteredVersion clusteredVersion) |
| 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) |
int |
hashCode() |
long |
lifespan()
Returns the lifespan of the cache entry with which this metadata object
is associated, in milliseconds.
|
String |
toString() |
getClusteredVersion, getNumericVersion, maxIdle, versionprotected EmbeddedLifespanExpirableMetadata(long lifespan,
EntryVersion version)
@ProtoFactory
protected EmbeddedLifespanExpirableMetadata(long lifespan,
NumericVersion numericVersion,
SimpleClusteredVersion clusteredVersion)
@ProtoField(number=3,
defaultValue="-1")
public long lifespan()
Metadatalifespan in interface Metadatalifespan in class EmbeddedMetadatapublic 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 Metadatabuilder in class EmbeddedMetadataMetadata.Builderpublic boolean equals(Object o)
equals in class EmbeddedMetadatapublic int hashCode()
hashCode in class EmbeddedMetadatapublic String toString()
toString in class EmbeddedMetadataCopyright © 2022 JBoss by Red Hat. All rights reserved.