public final class CaffeineDefaultExpiry
extends java.lang.Object
implements com.github.benmanes.caffeine.cache.Expiry<java.lang.Object,java.lang.Object>
Constructor and Description |
---|
CaffeineDefaultExpiry() |
Modifier and Type | Method and Description |
---|---|
long |
expireAfterCreate(java.lang.Object key,
java.lang.Object value,
long currentTime) |
long |
expireAfterRead(java.lang.Object key,
java.lang.Object value,
long currentTime,
long currentDuration) |
long |
expireAfterUpdate(java.lang.Object key,
java.lang.Object value,
long currentTime,
long currentDuration) |
public long expireAfterCreate(@Nonnull java.lang.Object key, @Nonnull java.lang.Object value, long currentTime)
expireAfterCreate
in interface com.github.benmanes.caffeine.cache.Expiry<java.lang.Object,java.lang.Object>
public long expireAfterUpdate(@Nonnull java.lang.Object key, @Nonnull java.lang.Object value, long currentTime, long currentDuration)
expireAfterUpdate
in interface com.github.benmanes.caffeine.cache.Expiry<java.lang.Object,java.lang.Object>
public long expireAfterRead(@Nonnull java.lang.Object key, @Nonnull java.lang.Object value, long currentTime, long currentDuration)
expireAfterRead
in interface com.github.benmanes.caffeine.cache.Expiry<java.lang.Object,java.lang.Object>