public interface InternalCacheValue<V>
Modifier and Type | Method and Description |
---|---|
boolean |
canExpire() |
long |
getCreated() |
long |
getExpiryTime() |
PrivateMetadata |
getInternalMetadata() |
long |
getLastUsed() |
long |
getLifespan() |
long |
getMaxIdle() |
Metadata |
getMetadata() |
V |
getValue() |
boolean |
isExpired(long now) |
default boolean |
isMaxIdleExpirable() |
void |
setInternalMetadata(PrivateMetadata internalMetadata) |
<K> InternalCacheEntry<K,V> |
toInternalCacheEntry(K key) |
V getValue()
<K> InternalCacheEntry<K,V> toInternalCacheEntry(K key)
boolean isExpired(long now)
now
- the current time as expressed by System.currentTimeMillis()
boolean canExpire()
default boolean isMaxIdleExpirable()
long getCreated()
long getLastUsed()
long getLifespan()
long getMaxIdle()
long getExpiryTime()
Metadata getMetadata()
PrivateMetadata getInternalMetadata()
void setInternalMetadata(PrivateMetadata internalMetadata)
Copyright © 2021 JBoss by Red Hat. All rights reserved.