Class QuarkusWebSocketConnectorOutgoingConfiguration
- java.lang.Object
-
- io.quarkus.reactivemessaging.http.runtime.QuarkusWebSocketConnectorCommonConfiguration
-
- io.quarkus.reactivemessaging.http.runtime.QuarkusWebSocketConnectorOutgoingConfiguration
-
public class QuarkusWebSocketConnectorOutgoingConfiguration extends QuarkusWebSocketConnectorCommonConfiguration
Extract the outgoing configuration for thequarkus-websocket
connector.
-
-
Field Summary
-
Fields inherited from class io.quarkus.reactivemessaging.http.runtime.QuarkusWebSocketConnectorCommonConfiguration
config
-
-
Constructor Summary
Constructors Constructor Description QuarkusWebSocketConnectorOutgoingConfiguration(org.eclipse.microprofile.config.Config config)
Creates a new QuarkusWebSocketConnectorOutgoingConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getDelay()
Gets the delay value from the configuration.Double
getJitter()
Gets the jitter value from the configuration.Integer
getMaxRetries()
Gets the maxRetries 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.QuarkusWebSocketConnectorCommonConfiguration
config, getChannel, getFromAlias, getFromAliasWithDefaultValue
-
-
-
-
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
-
getMaxRetries
public Integer getMaxRetries()
Gets the maxRetries value from the configuration. Attribute Name: maxRetries Description: The number of retries to make for sending a message to a remote websocket endpoint. A value greater than 0 is advised. Otherwise, a web socket timeout can result in a dropped message Default Value: 1- Returns:
- the maxRetries
-
getJitter
public Double getJitter()
Gets the jitter value from the configuration. Attribute Name: jitter Description: Configures the random factor when using back-off with maxAttempts > 1 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 classQuarkusWebSocketConnectorCommonConfiguration
-
-