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
Remarks
Will be empty when data was not requested.
Id
Unique id of this message.
public ulong Id { get; }
Property Value
Length
Length of this message.
public MemorySize Length { get; }
Property Value
Publisher
IMessageBrokerMessagePublisher that pushed this message.
public IMessageBrokerMessagePublisher Publisher { get; }
Property Value
PushedAt
Moment in time when this message has been pushed.
public Timestamp PushedAt { get; }
Property Value
RefCount
Number of references to this message.
public int RefCount { get; }
Property Value
StoreKey
Store key of this message.
public int StoreKey { get; }
Property Value
Methods
ToString()
Returns a string representation of this MessageBrokerStreamMessage instance.
[Pure]
public override string ToString()
Returns
- string
String representation.