Class QuarkusHttpConnectorOutgoingConfiguration

java.lang.Object
io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnectorCommonConfiguration
io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnectorOutgoingConfiguration

public class QuarkusHttpConnectorOutgoingConfiguration extends QuarkusHttpConnectorCommonConfiguration
Extract the outgoing configuration for the quarkus-http connector.
  • Constructor Details

    • QuarkusHttpConnectorOutgoingConfiguration

      public QuarkusHttpConnectorOutgoingConfiguration(org.eclipse.microprofile.config.Config config)
      Creates a new QuarkusHttpConnectorOutgoingConfiguration.
  • Method Details

    • getUrl

      public String getUrl()
      Gets the url value from the configuration. Attribute Name: url Description: The target URL Mandatory: yes
      Returns:
      the url
    • getSerializer

      public Optional<String> getSerializer()
      Gets the serializer value from the configuration. Attribute Name: serializer Description: Message serializer
      Returns:
      the serializer
    • getMaxPoolSize

      public Optional<Integer> getMaxPoolSize()
      Gets the maxPoolSize value from the configuration. Attribute Name: maxPoolSize Description: Maximum pool size for connections
      Returns:
      the maxPoolSize
    • getMaxWaitQueueSize

      public Optional<Integer> getMaxWaitQueueSize()
      Gets the maxWaitQueueSize value from the configuration. Attribute Name: maxWaitQueueSize Description: Maximum requests allowed in the wait queue of the underlying client. If the value is set to a negative number then the queue will be unbounded
      Returns:
      the maxWaitQueueSize
    • getMaxRetries

      public Integer getMaxRetries()
      Gets the maxRetries value from the configuration. Attribute Name: maxRetries Description: The number of attempts to make for sending a request to a remote endpoint. Must not be less than zero Default Value: 0
      Returns:
      the maxRetries
    • getJitter

      public String getJitter()
      Gets the jitter value from the configuration. Attribute Name: jitter Description: Configures the random factor when using back-off with maxRetries > 0 Default Value: 0.5
      Returns:
      the jitter
    • getDelay

      public Optional<String> getDelay()
      Gets the delay value from the configuration. Attribute Name: delay Description: Configures a back-off delay between attempts to send a request. A random factor (jitter) is applied to increase the delay when several failures happen.
      Returns:
      the delay
    • validate

      public void validate()
      Overrides:
      validate in class QuarkusHttpConnectorCommonConfiguration