Class PubsubReplayOptions
Bounds of a replay_since Subscribe (configuration PubsubReplayMaxEntries,
PubsubReplayMaxBytes): a replay of more retained entries, or more payload
bytes, is refused with OUT_OF_RANGE before anything is sent. The entries are
held in memory while they are sent, so the byte bound protects the gateway from a
replay of large events (an order-book image is ~127 KB).
public sealed record PubsubReplayOptions : IEquatable<PubsubReplayOptions>
- Inheritance
-
PubsubReplayOptions
- Implements
- Inherited Members
Constructors
PubsubReplayOptions(int, long)
Bounds of a replay_since Subscribe (configuration PubsubReplayMaxEntries,
PubsubReplayMaxBytes): a replay of more retained entries, or more payload
bytes, is refused with OUT_OF_RANGE before anything is sent. The entries are
held in memory while they are sent, so the byte bound protects the gateway from a
replay of large events (an order-book image is ~127 KB).
public PubsubReplayOptions(int MaxEntries = 10000, long MaxBytes = 67108864)
Parameters
Fields
DefaultMaxBytes
public const long DefaultMaxBytes = 67108864
Field Value
DefaultMaxEntries
public const int DefaultMaxEntries = 10000
Field Value
Properties
MaxBytes
public long MaxBytes { get; init; }
Property Value
MaxEntries
public int MaxEntries { get; init; }
Property Value
Methods
From(string?, string?)
From configuration; an unset, unparsable or non-positive value keeps the default.
public static PubsubReplayOptions From(string? maxEntries, string? maxBytes)