ConnectionSettings constructor

ConnectionSettings({
  1. String host = "127.0.0.1",
  2. int port = 5672,
  3. String virtualHost = "/",
  4. Authenticator authProvider = const PlainAuthenticator("guest", "guest"),
  5. int maxConnectionAttempts = 1,
  6. Duration reconnectWaitTime = const Duration(milliseconds: 1500),
  7. TuningSettings? tuningSettings,
  8. SecurityContext? tlsContext,
})

Implementation

ConnectionSettings({
  this.host = "127.0.0.1",
  this.port = 5672,
  this.virtualHost = "/",
  this.authProvider = const PlainAuthenticator("guest", "guest"),
  this.maxConnectionAttempts = 1,
  this.reconnectWaitTime = const Duration(milliseconds: 1500),
  this.tuningSettings,
  this.tlsContext,
}) {
  if (this.tuningSettings == null) {
    tuningSettings = TuningSettings();
  }
}