Class GuaranteedDeliveryRecord<TPayload>
- Namespace
- PatternKit.Messaging.Reliability
- Assembly
- PatternKit.Core.dll
Stored message record used by the Guaranteed Delivery pattern.
public sealed class GuaranteedDeliveryRecord<TPayload>
Type Parameters
TPayload
- Inheritance
-
GuaranteedDeliveryRecord<TPayload>
- Inherited Members
Constructors
GuaranteedDeliveryRecord(string, Message<TPayload>, DateTimeOffset)
public GuaranteedDeliveryRecord(string id, Message<TPayload> message, DateTimeOffset enqueuedAt)
Parameters
idstringmessageMessage<TPayload>enqueuedAtDateTimeOffset
Properties
Attempts
public int Attempts { get; }
Property Value
EnqueuedAt
public DateTimeOffset EnqueuedAt { get; }
Property Value
Id
public string Id { get; }
Property Value
LastError
public string? LastError { get; }
Property Value
LeasedUntil
public DateTimeOffset? LeasedUntil { get; }
Property Value
Message
public Message<TPayload> Message { get; }
Property Value
- Message<TPayload>
Status
public GuaranteedDeliveryStatus Status { get; }
Property Value
Methods
Acknowledge()
public GuaranteedDeliveryRecord<TPayload> Acknowledge()
Returns
- GuaranteedDeliveryRecord<TPayload>
DeadLetter(string?)
public GuaranteedDeliveryRecord<TPayload> DeadLetter(string? error = null)
Parameters
errorstring
Returns
- GuaranteedDeliveryRecord<TPayload>
Lease(DateTimeOffset)
public GuaranteedDeliveryRecord<TPayload> Lease(DateTimeOffset leasedUntil)
Parameters
leasedUntilDateTimeOffset
Returns
- GuaranteedDeliveryRecord<TPayload>
Release(string?)
public GuaranteedDeliveryRecord<TPayload> Release(string? error = null)
Parameters
errorstring
Returns
- GuaranteedDeliveryRecord<TPayload>