Package org.alfresco.event.gateway
Class BrokerConfig
java.lang.Object
org.alfresco.event.gateway.BrokerConfig
Domain class to represent the configuration of a JMS broker.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Provide an instance of the builder for the classBrokerConfig.Get the circuit breaker milliseconds to call again the broker once the circuit is open.Get the circuit breaker threshold (number of failed attempts to stop calling the broker).Get the broker destination pattern.Get the broker password.Get the initial interval for a retry in milliseconds.Get the maximum number of retry attempts for the broker.Get the maximum interval for a retry in milliseconds.Get the multiplier for a retry with exponential growth policy.getUrl()Get the broker url.Get the broker username.booleanCheck if all the retry backoff policy attributes (retryInitialInterval,retryMultiplierandretryMaxInterval) are set.voidsetDestinationPattern(String destinationPattern)
-
Constructor Details
-
BrokerConfig
public BrokerConfig()
-
-
Method Details
-
builder
Provide an instance of the builder for the classBrokerConfig.- Returns:
- the corresponding builder instance
-
getUrl
Get the broker url.- Returns:
- the broker url
-
getUsername
Get the broker username.- Returns:
- the broker username
-
getPassword
Get the broker password.- Returns:
- the broker password
-
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
Get the circuit breaker threshold (number of failed attempts to stop calling the broker).- Returns:
- the circuit breaker threshold
-
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
Get the maximum number of retry attempts for the broker.- Returns:
- the maximum number of retry attempts for the broker
-
getRetryInitialInterval
Get the initial interval for a retry in milliseconds.- Returns:
- the initial interval for a retry in milliseconds
-
getRetryMultiplier
Get the multiplier for a retry with exponential growth policy.- Returns:
- the multiplier for a retry with exponential growth policy
-
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,retryMultiplierandretryMaxInterval) are set.- Returns:
trueif all backoff policy attributes are set,falseotherwise
-
setDestinationPattern
-