public static enum CachedSupplier.StaleValueBehavior extends Enum<CachedSupplier.StaleValueBehavior>
Enum Constant and Description |
---|
ALLOW
Allow stale values to be returned from the cache.
|
STRICT
Strictly treat the stale time.
|
Modifier and Type | Method and Description |
---|---|
static CachedSupplier.StaleValueBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CachedSupplier.StaleValueBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CachedSupplier.StaleValueBehavior STRICT
public static final CachedSupplier.StaleValueBehavior ALLOW
public static CachedSupplier.StaleValueBehavior[] values()
for (CachedSupplier.StaleValueBehavior c : CachedSupplier.StaleValueBehavior.values()) System.out.println(c);
public static CachedSupplier.StaleValueBehavior valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022. All rights reserved.