Interface SdkWarmUpProvider
Service Provider Interface for warming up an SDK service's request path before a Coordinated Restore at Checkpoint
(CRaC) checkpoint. The SDK discovers implementations on the classpath with
ServiceLoader. An
implementation registers itself in the
META-INF/services/software.amazon.awssdk.core.warmup.SdkWarmUpProvider resource.
Implementations must be thread safe.
-
Method Summary
Modifier and TypeMethodDescriptionThe fully qualified name of the async service client this provider warms (for example"software.amazon.awssdk.services.s3.S3AsyncClient"), ornullif the service has no async client.The fully qualified name of the sync service client this provider warms (for example"software.amazon.awssdk.services.s3.S3Client"), ornullif the service has no sync client.default voidwarmUp()Exercises the service's request path so the Just-In-Time compiled code is captured in a CRaC snapshot.voidwarmUpClient(ClientType clientType) Exercises only the request path of the given client type:ClientType.SYNCwarms the sync client,ClientType.ASYNCthe async client.
-
Method Details
-
warmUp
default void warmUp()Exercises the service's request path so the Just-In-Time compiled code is captured in a CRaC snapshot. The sync and async clients are warmed independently: a failure warming one is logged at warn and does not stop the other. -
syncClientClassName
String syncClientClassName()The fully qualified name of the sync service client this provider warms (for example"software.amazon.awssdk.services.s3.S3Client"), ornullif the service has no sync client. -
asyncClientClassName
String asyncClientClassName()The fully qualified name of the async service client this provider warms (for example"software.amazon.awssdk.services.s3.S3AsyncClient"), ornullif the service has no async client. -
warmUpClient
Exercises only the request path of the given client type:ClientType.SYNCwarms the sync client,ClientType.ASYNCthe async client. Any other value is a no-op.
-