public enum CacheExpirationStrategy extends Enum<CacheExpirationStrategy>
Enum Constant and Description |
---|
WHEN_CREATED
Key defines the cache expiry strategy based on when the cache entry is last created
|
WHEN_LAST_ACCESSED
Key defines the cache expiry strategy based on when the cache entry is last accessed
|
WHEN_LAST_MODIFIED
Key defines the cache expiry strategy based on when the cache entry is last modified
|
WHEN_LAST_TOUCHED
Key defines the cache expiry strategy based on when the cache entry is last touched.
|
Modifier and Type | Method and Description |
---|---|
static CacheExpirationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheExpirationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheExpirationStrategy WHEN_LAST_MODIFIED
public static final CacheExpirationStrategy WHEN_CREATED
public static final CacheExpirationStrategy WHEN_LAST_ACCESSED
public static final CacheExpirationStrategy WHEN_LAST_TOUCHED
public static CacheExpirationStrategy[] values()
for (CacheExpirationStrategy c : CacheExpirationStrategy.values()) System.out.println(c);
public static CacheExpirationStrategy 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 © 2020 SAP SE. All rights reserved.