Class FailedPartition
- Namespace
- Cratis.Chronicle.Observation
- Assembly
- Cratis.Chronicle.dll
Represents a failed partition.
public record FailedPartition : IEquatable<FailedPartition>
- Inheritance
-
FailedPartition
- Implements
- Inherited Members
- Extension Methods
Constructors
FailedPartition(FailedPartition)
protected FailedPartition(FailedPartition original)
Parameters
originalFailedPartition
FailedPartition(FailedPartitionId, ObserverId, Partition, IEnumerable<FailedPartitionAttempt>)
Represents a failed partition.
public FailedPartition(FailedPartitionId Id, ObserverId ObserverId, Partition Partition, IEnumerable<FailedPartitionAttempt> Attempts)
Parameters
IdFailedPartitionIdUnique identifier of the failed partition registration.
ObserverIdObserverIdThe identifier of the observer (Reactor, Reducer).
PartitionPartitionPartition that has failed.
AttemptsIEnumerable<FailedPartitionAttempt>Collection of FailedPartitionAttempt.
Properties
Attempts
Collection of FailedPartitionAttempt.
public IEnumerable<FailedPartitionAttempt> Attempts { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Id
Unique identifier of the failed partition registration.
public FailedPartitionId Id { get; init; }
Property Value
IsQuarantined
Gets whether the partition is quarantined from automatic retries. Null means the connected server did not provide this additive state.
public bool? IsQuarantined { get; init; }
Property Value
- bool?
IsResolved
Gets whether the failure has been resolved.
public bool IsResolved { get; init; }
Property Value
ObserverId
The identifier of the observer (Reactor, Reducer).
public ObserverId ObserverId { get; init; }
Property Value
Partition
Partition that has failed.
public Partition Partition { get; init; }
Property Value
Methods
Deconstruct(out FailedPartitionId, out ObserverId, out Partition, out IEnumerable<FailedPartitionAttempt>)
public void Deconstruct(out FailedPartitionId Id, out ObserverId ObserverId, out Partition Partition, out IEnumerable<FailedPartitionAttempt> Attempts)
Parameters
IdFailedPartitionIdObserverIdObserverIdPartitionPartitionAttemptsIEnumerable<FailedPartitionAttempt>
Equals(FailedPartition?)
public virtual bool Equals(FailedPartition? other)
Parameters
otherFailedPartition
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(FailedPartition?, FailedPartition?)
public static bool operator ==(FailedPartition? left, FailedPartition? right)
Parameters
leftFailedPartitionrightFailedPartition
Returns
operator !=(FailedPartition?, FailedPartition?)
public static bool operator !=(FailedPartition? left, FailedPartition? right)
Parameters
leftFailedPartitionrightFailedPartition