static <T extends Poolable> Expiration<T> |
Expiration.after(long fromTime,
long toTime,
java.util.concurrent.TimeUnit unit) |
Construct a new Expiration that will invalidate objects that are older
than the given lower bound, before they get older than the upper bound,
in the given time unit.
|
static <T extends Poolable> Expiration<T> |
Expiration.after(long time,
java.util.concurrent.TimeUnit unit) |
Construct a new Expiration that will invalidate objects that are older
than the exact provided span of time in the given unit.
|
default Expiration<T> |
Expiration.every(long fromTime,
long toTime,
java.util.concurrent.TimeUnit unit) |
Construct a new Expiration that is composed of a time-based expiration and
this one, such that this expiration is only consulted at most once within
a time period based on the given fromTime and toTime brackets.
|
default Expiration<T> |
Expiration.every(long time,
java.util.concurrent.TimeUnit unit) |
Construct a new Expiration that is composed of a time-based expiration and
this one, such that this expiration is only consulted at most once within
the given time period.
|
Expiration<? super T> |
PoolBuilder.getExpiration() |
|
static <T extends Poolable> Expiration<T> |
Expiration.never() |
Construct a new Expiration that never invalidates any objects.
|
default Expiration<T> |
Expiration.or(Expiration<T> other) |
Construct a new Expiration that will invalidate objects if either this, or
the given expiration, considers an object expired.
|