Class WarmedClientRegistry
java.lang.Object
software.amazon.awssdk.core.internal.warmup.WarmedClientRegistry
Tracks which service clients
SdkWarmUp.warmUp(Class...) has already warmed, so each is warmed at most once per
JVM. State is per-instance, so it is unit-testable with fresh instances; production uses a single long-lived instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmarkWarmed(Collection<String> clientClassNames) Records the given names as warmed.selectUnwarmed(Collection<String> clientClassNames) Returns the not-yet-warmed subset ofclientClassNames, in encounter order, ignoring nulls.
-
Constructor Details
-
WarmedClientRegistry
public WarmedClientRegistry()
-
-
Method Details
-
selectUnwarmed
Returns the not-yet-warmed subset ofclientClassNames, in encounter order, ignoring nulls. Warm the returned names, then pass them tomarkWarmed(Collection). -
markWarmed
Records the given names as warmed. Call only after warming completes, so a failed run is retried by a later call.
-