Table of Contents

Class TimestampedPayload<T>

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

A timestamped message that has a UNIX timestamp attached to the message for when it was created. This is a wrapper for a standard message with a nanos when the message was sent. This information will be used by the system to calculate when the data should be stored in a storage system.

public class TimestampedPayload<T> where T : Message

Type Parameters

T
Inheritance
TimestampedPayload<T>

Constructors

TimestampedPayload()

Default constructor

public TimestampedPayload()

TimestampedPayload(T)

Default constructor.

public TimestampedPayload(T message)

Parameters

message T

Properties

PayloadType

The payload type of the message

public Type PayloadType { get; }

Property Value

Type

UnixNanos

The timestamp of the message since Unix Time in nanoseconds

[Units("ns")]
public ulong UnixNanos { get; set; }

Property Value

ulong

Value

The value of the message

[Units("-")]
public Message? Value { get; set; }

Property Value

Message

Methods

GetMemoryUsed()

Returns the total amount of memory used by this particular message.

public int GetMemoryUsed()

Returns

int

[bytes] The total number of bytes used

ToString()

public override string ToString()

Returns

string