public static final class ProfileFileRefresher.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
ProfileFileRefresher |
build() |
ProfileFileRefresher.Builder |
clock(Clock clock)
Sets a clock for managing stale and prefetch durations.
|
ProfileFileRefresher.Builder |
onProfileFileReload(Consumer<ProfileFile> consumer)
Sets a custom action to perform when a profile file is reloaded.
|
ProfileFileRefresher.Builder |
profileFile(Supplier<ProfileFile> profileFile) |
ProfileFileRefresher.Builder |
profileFilePath(Path profileFilePath) |
public ProfileFileRefresher.Builder profileFile(Supplier<ProfileFile> profileFile)
public ProfileFileRefresher.Builder profileFilePath(Path profileFilePath)
public ProfileFileRefresher.Builder clock(Clock clock)
public ProfileFileRefresher.Builder onProfileFileReload(Consumer<ProfileFile> consumer)
consumer - The action to perform.public ProfileFileRefresher build()
Copyright © 2023. All rights reserved.