Package org.alfresco.event.gateway
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBrokerConfig.BrokerConfigBuilderBrokerConfigbuilder class.
-
Constructor Summary
Constructors Constructor Description BrokerConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BrokerConfig.BrokerConfigBuilderbuilder()Provide an instance of the builder for the classBrokerConfig.IntegergetCircuitBreakerHalfOpenAfter()Get the circuit breaker milliseconds to call again the broker once the circuit is open.IntegergetCircuitBreakerThreshold()Get the circuit breaker threshold (number of failed attempts to stop calling the broker).StringgetDestinationPattern()Get the broker destination pattern.StringgetPassword()Get the broker password.IntegergetRetryInitialInterval()Get the initial interval for a retry in milliseconds.IntegergetRetryMaxAttempts()Get the maximum number of retry attempts for the broker.IntegergetRetryMaxInterval()Get the maximum interval for a retry in milliseconds.IntegergetRetryMultiplier()Get the multiplier for a retry with exponential growth policy.StringgetUrl()Get the broker url.StringgetUsername()Get the broker username.booleanisBackoffPolicySet()Check if all the retry backoff policy attributes (retryInitialInterval,retryMultiplierandretryMaxInterval) are set.voidsetDestinationPattern(String destinationPattern)
-
-
-
Method Detail
-
builder
public static BrokerConfig.BrokerConfigBuilder builder()
Provide an instance of the builder for the classBrokerConfig.- 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,retryMultiplierandretryMaxInterval) are set.- Returns:
trueif all backoff policy attributes are set,falseotherwise
-
setDestinationPattern
public void setDestinationPattern(String destinationPattern)
-
-