ConnectionSettings constructor
ConnectionSettings({
- String host = "127.0.0.1",
- int port = 5672,
- String virtualHost = "/",
- Authenticator authProvider = const PlainAuthenticator("guest", "guest"),
- int maxConnectionAttempts = 1,
- Duration reconnectWaitTime = const Duration(milliseconds: 1500),
- TuningSettings? tuningSettings,
- 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();
}
}