Class RabbitConfiguration

java.lang.Object
com.github.workerframework.configs.RabbitConfiguration

public class RabbitConfiguration extends Object
General configuration for a RabbitMQ server connection from a client.
  • 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

      public String getRabbitProtocol()
      Returns:
      the protocol of the RabbitMQ server
    • setRabbitProtocol

      public void setRabbitProtocol(String rabbitProtocol)
    • getRabbitHost

      public String getRabbitHost()
      Returns:
      the hostname of the RabbitMQ server, as seen from the client
    • setRabbitHost

      public void setRabbitHost(String rabbitHost)
    • getRabbitPort

      public int getRabbitPort()
    • setRabbitPort

      public void setRabbitPort(int rabbitPort)
    • getRabbitUser

      public String getRabbitUser()
      Returns:
      the user name to authenticate with on the RabbitMQ server
    • setRabbitUser

      public void setRabbitUser(String rabbitUser)
    • getRabbitPassword

      public String getRabbitPassword()
      Returns:
      the password to authenticate with on the RabbitMQ server
    • setRabbitPassword

      public void setRabbitPassword(String rabbitPassword)