Class AwsSecretCache.Options
java.lang.Object
codes.grow.packages.awssecretsmanager.AwsSecretCache.Options
- Enclosing class:
AwsSecretCache
Options of
AwsSecretCache.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault LRU capacity (1 024, the AWS caching-client default).static final DurationDefault refresh interval (1 h, the AWS caching-client default). -
Method Summary
-
Field Details
-
DEFAULT_TTL
Default refresh interval (1 h, the AWS caching-client default). -
DEFAULT_MAX_ENTRIES
public static final int DEFAULT_MAX_ENTRIESDefault LRU capacity (1 024, the AWS caching-client default).- See Also:
-
-
Method Details
-
builder
Starts a builder with the AWS defaults.- Returns:
- a new builder
-
ttl
Returns the refresh interval.- Returns:
- the TTL
-
maxEntries
public int maxEntries()Returns the LRU capacity.- Returns:
- the maximum number of entries
-
versionStage
Returns the default stage label.- Returns:
- the stage
-
clock
Returns the clock.- Returns:
- the clock
-
onRefreshError
Returns the handler of failed refreshes.- Returns:
- the handler, or null
-