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.
  • Constructor Details

    • QuarkusWebSocketConnectorOutgoingConfiguration

      public QuarkusWebSocketConnectorOutgoingConfiguration(org.eclipse.microprofile.config.Config config)
      Creates a new QuarkusWebSocketConnectorOutgoingConfiguration.
  • 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
    • 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 class QuarkusWebSocketConnectorCommonConfiguration