public static final class CachingConfig.Builder
extends java.lang.Object
CachingConfig
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CachingConfig |
build()
Builds the configured instance.
|
CachingConfig.Builder |
cachingKeys(java.util.List<java.lang.String> cachingKeys)
Sets the value of
CachingConfig.getCachingKeys() |
CachingConfig.Builder |
ttl(Duration ttl)
Sets the value of
CachingConfig.getTtl() |
public CachingConfig.Builder ttl(Duration ttl)
CachingConfig.getTtl()
ttl
- The TTL in seconds for a resolver that has caching enabled. This parameter is required.
Valid values are between 1 and 3600 seconds.this
public CachingConfig.Builder cachingKeys(java.util.List<java.lang.String> cachingKeys)
CachingConfig.getCachingKeys()
cachingKeys
- The caching keys for a resolver that has caching enabled.
Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.this
public CachingConfig build()
CachingConfig
java.lang.NullPointerException
- if any required attribute was not provided