Class HttpUrlConnectionSender

java.lang.Object
io.micrometer.core.ipc.http.HttpUrlConnectionSender
All Implemented Interfaces:
HttpSender

public class HttpUrlConnectionSender extends Object implements HttpSender
Since:
1.1.0
  • Constructor Details

    • HttpUrlConnectionSender

      public HttpUrlConnectionSender(Duration connectTimeout, Duration readTimeout)
      Creates a sender with the specified timeouts but uses the default proxy settings.
      Parameters:
      connectTimeout - connect timeout when establishing a connection
      readTimeout - read timeout when receiving a response
    • HttpUrlConnectionSender

      public HttpUrlConnectionSender(Duration connectTimeout, Duration readTimeout, Proxy proxy)
      Creates a sender with the specified timeouts and proxy settings.
      Parameters:
      connectTimeout - connect timeout when establishing a connection
      readTimeout - read timeout when receiving a response
      proxy - proxy to use when establishing a connection
      Since:
      1.2.0
    • HttpUrlConnectionSender

      public HttpUrlConnectionSender()
      Use the default timeouts and proxy settings for the sender.
  • Method Details