Expirations.
Given two Expirations, this class considers that a slot is expired if any of the
Expiration returns `true`. This makes it easy to have an Expiration that
expires both on time (Expiration#after(long, TimeUnit)) and some other criteria.
| Modifier and Type | Field and Description |
|---|---|
| private final Expiration | |
| private final Expiration |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | hasExpired(SlotInfo<? extends T>
An informative representative of the slot being tested.
Never `null`. info)Implements stormpot. Expiration has expired.
|
| firstExpiration | back to summary |
|---|---|
| private final Expiration<T> firstExpiration | |
| secondExpiration | back to summary |
|---|---|
| private final Expiration<T> secondExpiration | |
| OrExpiration | back to summary |
|---|---|
| pack-priv OrExpiration(Expiration<T> firstExpiration, Expiration<T> secondExpiration) | |
| hasExpired | back to summary |
|---|---|
| public boolean hasExpired(SlotInfo<? extends T> info) throws Exception Implements stormpot. Returns `true` if any of the given
| |