@ProtoTypeId(value=1004) public class RemoteMetadata extends Object implements Metadata
| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteMetadata.Externalizer |
Metadata.Builder| Constructor and Description |
|---|
RemoteMetadata(Address address,
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. |
Address |
getAddress() |
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 RemoteMetadata(Address address, EntryVersion version)
@ProtoField(number=1,
javaType=JGroupsAddress.class)
public Address getAddress()
public long lifespan()
Metadatapublic long maxIdle()
Metadata@ProtoField(number=2,
javaType=SimpleClusteredVersion.class)
public 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.BuilderCopyright © 2022 JBoss by Red Hat. All rights reserved.