Table of Contents

Struct MessageBrokerStreamMessage

Namespace
LfrlAnvil.MessageBroker.Server
Assembly
LfrlAnvil.MessageBroker.Server.dll

Represents a snapshot of a message stored by a MessageBrokerStream.

public readonly struct MessageBrokerStreamMessage
Inherited Members

Properties

Data

Binary data of this message.

public ReadOnlyArray<byte> Data { get; }

Property Value

ReadOnlyArray<byte>

Remarks

Will be empty when data was not requested.

Id

Unique id of this message.

public ulong Id { get; }

Property Value

ulong

Length

Length of this message.

public MemorySize Length { get; }

Property Value

MemorySize

Publisher

IMessageBrokerMessagePublisher that pushed this message.

public IMessageBrokerMessagePublisher Publisher { get; }

Property Value

IMessageBrokerMessagePublisher

PushedAt

Moment in time when this message has been pushed.

public Timestamp PushedAt { get; }

Property Value

Timestamp

RefCount

Number of references to this message.

public int RefCount { get; }

Property Value

int

StoreKey

Store key of this message.

public int StoreKey { get; }

Property Value

int

Methods

ToString()

Returns a string representation of this MessageBrokerStreamMessage instance.

[Pure]
public override string ToString()

Returns

string

String representation.