Class PeriodicallyRefreshedReferenceAsync<T>

java.lang.Object
org.forgerock.secrets.PeriodicallyRefreshedReferenceAsync<T>
Type Parameters:
T - The type of the reference.

public final class PeriodicallyRefreshedReferenceAsync<T> extends Object
A simple reference to an object that is periodically refreshed. The refresh is asynchronous, thus the reference is not guaranteed to be refreshed, neither on time nor at all.

On refresh error, the reference retrieval (get() will serve the last valid reference until the next refresh.