Class StoreFailure
The local store or direct replication of the Update could not be fulfill according to the given IWriteConsistency due to durable store errors. This is only used for entries that have been configured to be durable.
The Update was still performed in memory locally and possibly replicated to some nodes, but it might not have been written to durable storage. It will eventually be disseminated to other replicas, unless the local replica crashes before it has been able to communicate with other replicas.
Implements
Inherited Members
Namespace: Akka.DistributedData
Assembly: Akka.DistributedData.dll
Syntax
public sealed class StoreFailure : IUpdateFailure, IUpdateResponse, IDeleteResponse, INoSerializationVerificationNeeded, IEquatable<StoreFailure>
Constructors
| Edit this page View SourceStoreFailure(IKey, object)
Declaration
public StoreFailure(IKey key, object request = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IKey | key | |
| object | request |
Properties
| Edit this page View SourceAlreadyDeleted
Returns true if value for provided Key was already deleted.
Declaration
public bool AlreadyDeleted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Cause
Returns a cause of the exception.
Declaration
public Exception Cause { get; }
Property Value
| Type | Description |
|---|---|
| Exception |
Request
Optional object that can be used to correlate this response with particular Update request.
Declaration
public object Request { get; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
| Edit this page View SourceEquals(StoreFailure)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(StoreFailure other)
Parameters
| Type | Name | Description |
|---|---|---|
| StoreFailure | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceThrowOnFailure()
Throws an exception if Update request has failed.
Declaration
public void ThrowOnFailure()
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Edit this page