Class DataDeleted
Implements
Inherited Members
Namespace: Akka.DistributedData
Assembly: Akka.DistributedData.dll
Syntax
[Serializable]
public sealed class DataDeleted : Exception, ISerializable, IDeleteResponse, IGetResponse, IUpdateResponse, INoSerializationVerificationNeeded, IEquatable<DataDeleted>
Constructors
| Edit this page View SourceDataDeleted(IKey, object)
Declaration
public DataDeleted(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 |
IsFailure
True if a failure happened during request fulfillment. False if returned successfully or value not found for the key.
Declaration
public bool IsFailure { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsFound
False if value for request was not found. True otherwise.
Declaration
public bool IsFound { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSuccessful
Returns true if value for provided Key was either successfully deleted, or was deleted already.
Declaration
public bool IsSuccessful { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Key
Key, for which data was deleted.
Declaration
public IKey Key { get; }
Property Value
| Type | Description |
|---|---|
| IKey |
Request
Optional object used for request/response correlation.
Declaration
public object Request { get; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
| Edit this page View SourceEquals(DataDeleted)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(DataDeleted other)
Parameters
| Type | Name | Description |
|---|---|---|
| DataDeleted | 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 SourceGet<T>(IKey<T>)
Tries to return a result of the request, given a replicated collection
key used when sending a Akka.DistributedData.Replicator request.
Declaration
public T Get<T>(IKey<T> key) where T : IReplicatedData
Parameters
| Type | Name | Description |
|---|---|---|
| IKey<T> | key | Key send originally with a Akka.DistributedData.Replicator request. |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | Replicated data. |
Exceptions
| Type | Condition |
|---|---|
| KeyNotFoundException | Thrown when no value for provided |
| TimeoutException | Thrown when response with given consistency didn't arrive within specified timeout. |
ThrowOnFailure()
Throws an exception if Update request has failed.
Declaration
public void ThrowOnFailure()
ToString()
Creates and returns a string representation of the current exception.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string representation of the current exception. |
Edit this page