public static final class ResilienceConfiguration.CacheConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResilienceConfiguration.CacheConfiguration.CacheConfigurationBuilder
Builder class for cache configuration.
|
Modifier and Type | Field and Description |
---|---|
static CacheExpirationStrategy |
DEFAULT_EXPIRATION_STRATEGY
Default value of Expiration Strategy is set as the strategy which is based on the last modification of the
cache.
|
Modifier and Type | Method and Description |
---|---|
static ResilienceConfiguration.CacheConfiguration |
disabled()
Factory method to create a disabled cache configuration.
|
boolean |
equals(Object o) |
Duration |
expirationDuration()
Duration after which the cache entry will be invalidated.
|
CacheExpirationStrategy |
expirationStrategy()
Expiration strategy for the cache.
|
int |
hashCode() |
boolean |
isEnabled()
Get the status indicator for the Cache.
|
static ResilienceConfiguration.CacheConfiguration.CacheConfigurationBuilder |
of(Duration expirationDuration)
Factory method to create a cache configuration builder instance.
|
Iterable<Object> |
parameters()
Additional parameters added to the cache key.
|
boolean |
serializable()
Flag to indicate parameters being serializable.
|
public static final CacheExpirationStrategy DEFAULT_EXPIRATION_STRATEGY
public boolean isEnabled()
@Nonnull public static ResilienceConfiguration.CacheConfiguration.CacheConfigurationBuilder of(@Nonnull Duration expirationDuration)
expirationDuration
- The duration after which the cache entry will be invalidated automatically.@Nonnull public static ResilienceConfiguration.CacheConfiguration disabled()
public boolean serializable()
@Nonnull public Duration expirationDuration()
@Nonnull public CacheExpirationStrategy expirationStrategy()
Copyright © 2020 SAP SE. All rights reserved.