Uses of Interface
stormpot.Expiration
Packages that use Expiration
-
Uses of Expiration in stormpot
Methods in stormpot that return ExpirationModifier and TypeMethodDescriptionstatic <T extends Poolable>
Expiration<T> 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> 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> 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 givenfromTimeandtoTimebrackets.default Expiration<T> 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()Get the configuredExpirationinstance.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.Methods in stormpot with parameters of type ExpirationModifier and TypeMethodDescriptiondefault 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.PoolBuilder.setExpiration(Expiration<? super T> expiration) Set theExpirationto use for the pools we want to configure. -
Uses of Expiration in stormpot.internal
Classes in stormpot.internal that implement ExpirationModifier and TypeClassDescriptionfinal classEveryExpiration<T extends Poolable>The implementation of theevery(long, TimeUnit)andevery(long, long, TimeUnit)expiration combinators.final classOrExpiration<T extends Poolable>Provides a way to composeExpirations.final classTimeExpiration<T extends Poolable>This is a time basedExpiration.final classTimeSpreadExpiration<T extends Poolable>This is the standard time basedExpiration.Methods in stormpot.internal that return ExpirationMethods in stormpot.internal with parameters of type ExpirationModifier and TypeMethodDescriptionPoolBuilderImpl.setExpiration(Expiration<? super T> expiration) Constructors in stormpot.internal with parameters of type ExpirationModifierConstructorDescriptionEveryExpiration(Expiration<T> innerExpiration, long fromTime, long toTime, TimeUnit unit) Create an instance of the combinator with the given configuration.OrExpiration(Expiration<T> firstExpiration, Expiration<T> secondExpiration) Create a new instance with the given two expirations.