Class NatsOpts
Immutable options for NatsConnection, you can configure via with
operator.
public sealed record NatsOpts : IEquatable<NatsOpts>
- Inheritance
-
NatsOpts
- Implements
- Inherited Members
Fields
Properties
- IgnoreAuthErrorAbort
Opts-out of the default connect behavior of aborting subsequent reconnect attempts if server returns the same auth error twice.
- MaxReconnectRetry
Maximum number of reconnect attempts. (default: -1, unlimited)
- ReconnectJitter
Random amount of time to wait between reconnect attempts. (default: 100ms)
- ReconnectWaitMax
Backoff delay limit for reconnect attempts. (default: 5 seconds)
- ReconnectWaitMin
Minimum amount of time to wait between reconnect attempts. (default: 2s)
- SubPendingChannelCapacity
This value will be used for subscriptions internal bounded message channel capacity. The default subscriber pending message limit is 1024.
- SubPendingChannelFullMode
This value will be used for subscriptions internal bounded message channel
FullMode
. The default is to drop newest message when full (BoundedChannelFullMode.DropNewest
).
- Url
NATS server URL to connect to. (default: nats://localhost:4222)