Class ProfileFileRefresher.Builder
- java.lang.Object
-
- software.amazon.awssdk.profiles.internal.ProfileFileRefresher.Builder
-
- Enclosing class:
- ProfileFileRefresher
public static final class ProfileFileRefresher.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfileFileRefresherbuild()ProfileFileRefresher.Builderclock(Clock clock)Sets a clock for managing stale and prefetch durations.ProfileFileRefresher.BuilderonProfileFileReload(Consumer<ProfileFile> consumer)Sets a custom action to perform when a profile file is reloaded.ProfileFileRefresher.BuilderprofileFile(Supplier<ProfileFile> profileFile)ProfileFileRefresher.BuilderprofileFilePath(Path profileFilePath)
-
-
-
Method Detail
-
profileFile
public ProfileFileRefresher.Builder profileFile(Supplier<ProfileFile> profileFile)
-
profileFilePath
public ProfileFileRefresher.Builder profileFilePath(Path profileFilePath)
-
clock
@SdkTestInternalApi public ProfileFileRefresher.Builder clock(Clock clock)
Sets a clock for managing stale and prefetch durations.
-
onProfileFileReload
public ProfileFileRefresher.Builder onProfileFileReload(Consumer<ProfileFile> consumer)
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
public ProfileFileRefresher build()
-
-