public static final class ResilienceConfiguration.CacheConfiguration.CacheConfigurationBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
ResilienceConfiguration.CacheConfiguration.CacheConfigurationBuilder |
withExpirationStrategy(CacheExpirationStrategy expirationStrategy)
Setter to set the Expiration Strategy for the cache configuration
|
ResilienceConfiguration.CacheConfiguration |
withoutParameters()
Instantiate the cache configuration without additional parameters for the cache key.
|
ResilienceConfiguration.CacheConfiguration |
withParameters(Object component,
Object... otherComponents)
Instantiate the cache configuration with additional non-serializable parameters for the cache key.
|
ResilienceConfiguration.CacheConfiguration |
withParameters(Serializable component,
Serializable... otherComponents)
Instantiate the cache configuration with additional serializable parameters for the cache key.
|
@Nonnull public ResilienceConfiguration.CacheConfiguration.CacheConfigurationBuilder withExpirationStrategy(@Nonnull CacheExpirationStrategy expirationStrategy)
expirationStrategy - defines the expiration strategy for the cache configuration@Nonnull public ResilienceConfiguration.CacheConfiguration withParameters(@Nonnull Serializable component, @Nonnull Serializable... otherComponents)
component - A component to parameterize the cache configuration.otherComponents - Optionally further components to parameterize the cache.@Nonnull public ResilienceConfiguration.CacheConfiguration withParameters(@Nonnull Object component, @Nonnull Object... otherComponents)
component - A component to parameterize the cache configuration.otherComponents - Optionally further components to parameterize the cache.@Nonnull public ResilienceConfiguration.CacheConfiguration withoutParameters()
Copyright © 2022 SAP SE. All rights reserved.