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 the
quarkus-websocket connector.-
Field Summary
Fields inherited from class io.quarkus.reactivemessaging.http.runtime.QuarkusWebSocketConnectorCommonConfiguration
config -
Constructor Summary
ConstructorsConstructorDescriptionQuarkusWebSocketConnectorOutgoingConfiguration(org.eclipse.microprofile.config.Config config) Creates a new QuarkusWebSocketConnectorOutgoingConfiguration. -
Method Summary
Modifier and TypeMethodDescriptiongetDelay()Gets the delay value from the configuration.Gets the jitter value from the configuration.Gets the maxRetries value from the configuration.Gets the serializer value from the configuration.Gets the tlsConfigurationName value from the configuration.getUrl()Gets the url value from the configuration.voidvalidate()Methods inherited from class io.quarkus.reactivemessaging.http.runtime.QuarkusWebSocketConnectorCommonConfiguration
config, getChannel, getFromAlias, getFromAliasWithDefaultValue
-
Constructor Details
-
QuarkusWebSocketConnectorOutgoingConfiguration
public QuarkusWebSocketConnectorOutgoingConfiguration(org.eclipse.microprofile.config.Config config) Creates a new QuarkusWebSocketConnectorOutgoingConfiguration.
-
-
Method Details
-
getUrl
Gets the url value from the configuration. Attribute Name: url Description: The target URL Mandatory: yes- Returns:
- the url
-
getSerializer
Gets the serializer value from the configuration. Attribute Name: serializer Description: Message serializer- Returns:
- the serializer
-
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
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
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
-
getTlsConfigurationName
Gets the tlsConfigurationName value from the configuration. Attribute Name: tlsConfigurationName Description: Name of the TLS configuration to be used from TLS registry.- Returns:
- the tlsConfigurationName
-
validate
public void validate()- Overrides:
validatein classQuarkusWebSocketConnectorCommonConfiguration
-