Class WarmUpProviderSpec

java.lang.Object
software.amazon.awssdk.codegen.poet.warmup.WarmUpProviderSpec
All Implemented Interfaces:
ClassSpec

public class WarmUpProviderSpec extends Object implements ClassSpec
Generates an SdkWarmUpProvider implementation per service.

The warmUpClient(ClientType) body instantiates and closes a synthetic sync client (when the service generates one) and a synthetic async client, each guarded by the requested ClientType and wired to an in-memory canned HTTP client, anonymous credentials, a fixed region and a local endpointOverride. Building the clients JIT-compiles the client construction and configuration-resolution path before a CRaC checkpoint. Each client also invokes the operation chosen by WarmUpOperationSelector, if any, to warm up the marshalling, auth-scheme resolution and unmarshalling paths. The syncClientClassName()/asyncClientClassName() strings let SdkWarmUp.warmUp(Class...) match a requested client class to this provider.

  • Constructor Details

  • Method Details

    • className

      public com.squareup.javapoet.ClassName className()
      Specified by:
      className in interface ClassSpec
      Returns:
      The Poet representation of the class being generated, this may be used by other classes
    • poetSpec

      public com.squareup.javapoet.TypeSpec poetSpec()
      Specified by:
      poetSpec in interface ClassSpec
      Returns:
      The actual class specification generated from a PoetSpec.builder()... implementation