Class BrokerConfig

java.lang.Object
org.alfresco.event.gateway.BrokerConfig

public class BrokerConfig extends Object
Domain class to represent the configuration of a JMS broker.
  • Constructor Details

    • BrokerConfig

      public BrokerConfig()
  • Method Details

    • builder

      public static BrokerConfig.BrokerConfigBuilder builder()
      Provide an instance of the builder for the class BrokerConfig.
      Returns:
      the corresponding builder instance
    • getUrl

      public String getUrl()
      Get the broker url.
      Returns:
      the broker url
    • getUsername

      public String getUsername()
      Get the broker username.
      Returns:
      the broker username
    • getPassword

      public String getPassword()
      Get the broker password.
      Returns:
      the broker password
    • getDestinationPattern

      public String getDestinationPattern()
      Get the broker destination pattern. Regexp to be fulfilled by any destination to be referenced in the broker.
      Returns:
      the broker destination pattern
    • getCircuitBreakerThreshold

      public Integer getCircuitBreakerThreshold()
      Get the circuit breaker threshold (number of failed attempts to stop calling the broker).
      Returns:
      the circuit breaker threshold
    • getCircuitBreakerHalfOpenAfter

      public Integer getCircuitBreakerHalfOpenAfter()
      Get the circuit breaker milliseconds to call again the broker once the circuit is open.
      Returns:
      the circuit breaker milliseconds to call again the broker once the circuit is open
    • getRetryMaxAttempts

      public Integer getRetryMaxAttempts()
      Get the maximum number of retry attempts for the broker.
      Returns:
      the maximum number of retry attempts for the broker
    • getRetryInitialInterval

      public Integer getRetryInitialInterval()
      Get the initial interval for a retry in milliseconds.
      Returns:
      the initial interval for a retry in milliseconds
    • getRetryMultiplier

      public Integer getRetryMultiplier()
      Get the multiplier for a retry with exponential growth policy.
      Returns:
      the multiplier for a retry with exponential growth policy
    • getRetryMaxInterval

      public Integer getRetryMaxInterval()
      Get the maximum interval for a retry in milliseconds.
      Returns:
      the maximum interval for a retry in milliseconds
    • isBackoffPolicySet

      public boolean isBackoffPolicySet()
      Check if all the retry backoff policy attributes (retryInitialInterval, retryMultiplier and retryMaxInterval) are set.
      Returns:
      true if all backoff policy attributes are set, false otherwise
    • setDestinationPattern

      public void setDestinationPattern(String destinationPattern)