Modifier and Type | Class and Description |
---|---|
static class |
MemcachedMetadata.Externalizer |
Metadata.Builder
Constructor and Description |
---|
MemcachedMetadata(long flags,
EntryVersion version) |
Modifier and Type | Method and Description |
---|---|
static MemcachedMetadata |
apply(long flags,
EntryVersion version) |
static MemcachedMetadata |
apply(long flags,
EntryVersion version,
long lifespan,
TimeUnit lifespanUnit,
long maxIdle,
TimeUnit maxIdleUnit) |
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 |
canEqual(Object other) |
boolean |
equals(Object obj) |
long |
flags() |
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 MemcachedMetadata(long flags, EntryVersion version)
public static MemcachedMetadata apply(long flags, EntryVersion version, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
public static MemcachedMetadata apply(long flags, EntryVersion version)
public long flags()
public EntryVersion version()
Metadata
public long lifespan()
Metadata
public long maxIdle()
Metadata
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
public boolean canEqual(Object other)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.