Interface HttpClientWarmer

All Known Implementing Classes:
AsyncHttpClientWarmer, SyncHttpClientWarmer

@SdkInternalApi public interface HttpClientWarmer
Warms the sync or async HTTP clients on the classpath for CRaC warm-up.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Warms every HTTP client found on the classpath.
    static String
    Builds the User-Agent header value for warm-up requests: the system user agent (SDK version, Java version, OS, etc.) plus the WARM_UP_FEATURE_ID feature marker.
  • Field Details

  • Method Details

    • warmAll

      void warmAll()
      Warms every HTTP client found on the classpath. Best-effort; never throws.
    • warmUpUserAgent

      static String warmUpUserAgent()
      Builds the User-Agent header value for warm-up requests: the system user agent (SDK version, Java version, OS, etc.) plus the WARM_UP_FEATURE_ID feature marker.