@Deprecated
public final class Expirations
extends java.lang.Object
Expiry
instances.Modifier and Type | Class and Description |
---|---|
static class |
Expirations.ExpiryBuilder<K,V>
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> Expirations.ExpiryBuilder<K,V> |
builder()
Deprecated.
Use
org.ehcache.config.builders.ExpiryPolicyBuilder#expiry() instead |
static Expiry<java.lang.Object,java.lang.Object> |
noExpiration()
Deprecated.
Use
org.ehcache.config.builders.ExpiryPolicyBuilder#noExpiration() instead |
static Expiry<java.lang.Object,java.lang.Object> |
timeToIdleExpiration(Duration timeToIdle)
Deprecated.
Use
org.ehcache.config.builders.ExpiryPolicyBuilder#timeToIdleExpiration(java.time.Duration) instead |
static Expiry<java.lang.Object,java.lang.Object> |
timeToLiveExpiration(Duration timeToLive)
Deprecated.
Use
org.ehcache.config.builders.ExpiryPolicyBuilder#timeToLiveExpiration(java.time.Duration) instead |
@Deprecated public static Expiry<java.lang.Object,java.lang.Object> noExpiration()
org.ehcache.config.builders.ExpiryPolicyBuilder#noExpiration()
insteadExpiry
instance for a non expiring (ie. "eternal") cache.@Deprecated public static Expiry<java.lang.Object,java.lang.Object> timeToLiveExpiration(Duration timeToLive)
org.ehcache.config.builders.ExpiryPolicyBuilder#timeToLiveExpiration(java.time.Duration)
insteadtimeToLive
- the TTL duration@Deprecated public static Expiry<java.lang.Object,java.lang.Object> timeToIdleExpiration(Duration timeToIdle)
org.ehcache.config.builders.ExpiryPolicyBuilder#timeToIdleExpiration(java.time.Duration)
insteadtimeToIdle
- the TTI duration@Deprecated public static <K,V> Expirations.ExpiryBuilder<K,V> builder()
org.ehcache.config.builders.ExpiryPolicyBuilder#expiry()
insteadDuration.INFINITE
for create and null
for access and update, matching
the no expiration
expiry.K
- the key type for the cacheV
- the value type for the cacheExpiry
builder