Class RabbitConfiguration
java.lang.Object
com.github.workerframework.configs.RabbitConfiguration
General configuration for a RabbitMQ server connection from a client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintvoidsetBackoffInterval(int backoffInterval) voidsetMaxAttempts(int maxAttempts) voidsetMaxBackoffInterval(int maxBackoffInterval) voidsetRabbitHost(String rabbitHost) voidsetRabbitPassword(String rabbitPassword) voidsetRabbitPort(int rabbitPort) voidsetRabbitProtocol(String rabbitProtocol) voidsetRabbitUser(String rabbitUser)
-
Constructor Details
-
RabbitConfiguration
public RabbitConfiguration()
-
-
Method Details
-
getBackoffInterval
public int getBackoffInterval()- Returns:
- the seconds between the initial backoff in case of connection failure, this will increase with each subsequent failure
-
setBackoffInterval
public void setBackoffInterval(int backoffInterval) -
getMaxBackoffInterval
public int getMaxBackoffInterval()- Returns:
- the maximum number of seconds between retry attempts
-
setMaxBackoffInterval
public void setMaxBackoffInterval(int maxBackoffInterval) -
getMaxAttempts
public int getMaxAttempts()- Returns:
- the maximum number of retries to perform in case of failure
-
setMaxAttempts
public void setMaxAttempts(int maxAttempts) -
getRabbitProtocol
- Returns:
- the protocol of the RabbitMQ server
-
setRabbitProtocol
-
getRabbitHost
- Returns:
- the hostname of the RabbitMQ server, as seen from the client
-
setRabbitHost
-
getRabbitPort
public int getRabbitPort() -
setRabbitPort
public void setRabbitPort(int rabbitPort) -
getRabbitUser
- Returns:
- the user name to authenticate with on the RabbitMQ server
-
setRabbitUser
-
getRabbitPassword
- Returns:
- the password to authenticate with on the RabbitMQ server
-
setRabbitPassword
-