init(retryIntervals:alwaysResolveTopics:connectionTimeout:sendTimeout:confirmationTimeout:httpProxy:)
Initialize a new network configuration.
init(retryIntervals: [Duration] = [.milliseconds(500), .seconds(2), .seconds(10)], alwaysResolveTopics: Bool = false, connectionTimeout: Duration? = nil, sendTimeout: Duration? = nil, confirmationTimeout: Duration? = nil, httpProxy: HTTPClient.Configuration.Proxy? = nil)
Parameters
- retryIntervals
A list of intervals to wait between automatic retries before giving up. Defaults to a maximum of three retries.
- alwaysResolveTopics
A flag to automatically generate a random
Topic
to prevent messages that are automatically retried from being delivered twice. Defaults tofalse
.- connectionTimeout
A timeout before a connection is dropped. Defaults to 10 seconds
- sendTimeout
A timeout before we abandon the connection due to messages not being sent. Defaults to no timeout.
- confirmationTimeout
A timeout before we abondon the connection due to the push service not sending back acknowledgement a message was received. Defaults to no timeout.
- httpProxy
An HTTP proxy to use when communicating to a push service. Defaults to no proxy.