Table of Contents

Class PubsubReplayOptions

Namespace
Virtufin.Api.Services
Assembly
Virtufin.Api.dll

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

MaxEntries int
MaxBytes long

Fields

DefaultMaxBytes

public const long DefaultMaxBytes = 67108864

Field Value

long

DefaultMaxEntries

public const int DefaultMaxEntries = 10000

Field Value

int

Properties

MaxBytes

public long MaxBytes { get; init; }

Property Value

long

MaxEntries

public int MaxEntries { get; init; }

Property Value

int

Methods

From(string?, string?)

From configuration; an unset, unparsable or non-positive value keeps the default.

public static PubsubReplayOptions From(string? maxEntries, string? maxBytes)

Parameters

maxEntries string
maxBytes string

Returns

PubsubReplayOptions