public class InternalMetadataImpl extends Object implements InternalMetadata
Modifier and Type | Class and Description |
---|---|
static class |
InternalMetadataImpl.Externalizer |
Metadata.Builder
Constructor and Description |
---|
InternalMetadataImpl() |
InternalMetadataImpl(InternalCacheEntry ice) |
InternalMetadataImpl(Metadata actual,
long created,
long lastUsed) |
Modifier and Type | Method and Description |
---|---|
Metadata |
actual() |
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 . |
long |
created() |
boolean |
equals(Object o) |
long |
expiryTime() |
int |
hashCode() |
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 InternalMetadataImpl()
public InternalMetadataImpl(InternalCacheEntry ice)
public InternalMetadataImpl(Metadata actual, long created, long lastUsed)
public long lifespan()
Metadata
public long maxIdle()
Metadata
public EntryVersion version()
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 long created()
created
in interface InternalMetadata
public long lastUsed()
lastUsed
in interface InternalMetadata
public Metadata actual()
public long expiryTime()
expiryTime
in interface InternalMetadata
public boolean isExpired(long now)
isExpired
in interface InternalMetadata
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.