Class WarmUpDiscovery
java.lang.Object
software.amazon.awssdk.core.internal.warmup.WarmUpDiscovery
Shared best-effort helpers for the CRaC warm-up paths:
ServiceLoader iteration and running a
single warm-up task without letting its failure stop the others.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidforEachDiscovered(Iterator<T> iterator, Consumer<T> action) Appliesactionto every discovered element, skipping (and logging at warn) any element that fails to load or whose action throws, so the rest still run.static booleanRuns one warm-uptask.
-
Method Details
-
forEachDiscovered
Appliesactionto every discovered element, skipping (and logging at warn) any element that fails to load or whose action throws, so the rest still run. Logs at debug when nothing is discovered. -
runSafely
Runs one warm-uptask. Returnstrueif it completed. If it fails, logs at warn withdescriptionand returnsfalse, so a sibling task still runs.Also catches
LinkageError: a task can fail to link (missing dependency or native library) and that is anError, not anException. Other errors still propagate.
-