Class ProfileFileRefresher.Builder
java.lang.Object
software.amazon.awssdk.profiles.internal.ProfileFileRefresher.Builder
- Enclosing class:
ProfileFileRefresher
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Sets a clock for managing stale and prefetch durations.onProfileFileReload
(Consumer<ProfileFile> consumer) Sets a custom action to perform when a profile file is reloaded.profileFile
(Supplier<ProfileFile> profileFile) profileFilePath
(Path profileFilePath)
-
Method Details
-
profileFile
-
profileFilePath
-
clock
Sets a clock for managing stale and prefetch durations. -
onProfileFileReload
Sets a custom action to perform when a profile file is reloaded. This action is executed when both the cache is stale and the disk file associated with the profile file has been modified since the last load.- Parameters:
consumer
- The action to perform.
-
build
-