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 thequarkus-http
connector.
-
-
Field Summary
-
Fields inherited from class io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnectorCommonConfiguration
config
-
-
Constructor Summary
Constructors Constructor Description QuarkusHttpConnectorOutgoingConfiguration(org.eclipse.microprofile.config.Config config)
Creates a new QuarkusHttpConnectorOutgoingConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getDelay()
Gets the delay value from the configuration.String
getJitter()
Gets the jitter value from the configuration.Optional<Integer>
getMaxPoolSize()
Gets the maxPoolSize value from the configuration.Integer
getMaxRetries()
Gets the maxRetries value from the configuration.Optional<Integer>
getMaxWaitQueueSize()
Gets the maxWaitQueueSize value from the configuration.Optional<String>
getSerializer()
Gets the serializer value from the configuration.String
getUrl()
Gets the url value from the configuration.void
validate()
-
Methods inherited from class io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnectorCommonConfiguration
config, getChannel, getFromAlias, getFromAliasWithDefaultValue, getMethod
-
-
-
-
Method Detail
-
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 classQuarkusHttpConnectorCommonConfiguration
-
-