Enum Class HttpClientUtils.EndpointType

java.lang.Object
java.lang.Enum<HttpClientUtils.EndpointType>
dev.sympho.bot_utils.HttpClientUtils.EndpointType
All Implemented Interfaces:
Serializable, Comparable<HttpClientUtils.EndpointType>, Constable
Enclosing class:
HttpClientUtils

public static enum HttpClientUtils.EndpointType extends Enum<HttpClientUtils.EndpointType>
Endpoint types used to interact with Discord.
Since:
1.0
  • Enum Constant Details

  • Method Details

    • values

      public static HttpClientUtils.EndpointType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HttpClientUtils.EndpointType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • uriTagFormatter

      public UnaryOperator<String> uriTagFormatter()
      Retrieves the URI formatter to use for metric tags.
      Returns:
      The formatter.
    • configureClient

      public reactor.netty.http.client.HttpClient configureClient(reactor.netty.http.client.HttpClient client, Retry dnsRetryPolicy)
      Configures an HTTP client to use with this endpoint type.
      Parameters:
      client - The client to configure.
      dnsRetryPolicy - The DNS retry policy to use.
      Returns:
      The configured client.
    • configureClient

      public reactor.netty.http.client.HttpClient configureClient(reactor.netty.http.client.HttpClient client)
      Configures an HTTP client to use with this endpoint type, using the default retry policy.
      Parameters:
      client - The client to configure.
      Returns:
      The configured client.
      See Also:
    • configureClient

      public reactor.netty.http.client.HttpClient configureClient(Retry dnsRetryPolicy)
      Creates and configures an HTTP client to use with this endpoint type.
      Parameters:
      dnsRetryPolicy - The DNS retry policy to use.
      Returns:
      The configured client.
      See Also:
    • configureClient

      public reactor.netty.http.client.HttpClient configureClient()
      Creates and configures an HTTP client to use with this endpoint type, using the default retry policy.
      Returns:
      The configured client.
      See Also: