Class GetSuccess
Assembly: Akka.DistributedData.dll
Syntax
[Serializable]
public sealed class GetSuccess : IGetResponse, INoSerializationVerificationNeeded, IEquatable<GetSuccess>, IReplicatorMessage
Constructors
|
Edit this page
View Source
GetSuccess(IKey, object, IReplicatedData)
Declaration
public GetSuccess(IKey key, object request, IReplicatedData data)
Parameters
Properties
|
Edit this page
View Source
Data
Declaration
public IReplicatedData Data { get; }
Property Value
|
Edit this page
View Source
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
|
Edit this page
View Source
IsFound
False if value for request was not found. True otherwise.
Declaration
public bool IsFound { get; }
Property Value
|
Edit this page
View Source
IsSuccessful
True if value for request was successfully returned.
False if value was either not found or ended with failure.
Declaration
public bool IsSuccessful { get; }
Property Value
|
Edit this page
View Source
Key
Declaration
Property Value
|
Edit this page
View Source
Request
Optional object used for request/response correlation.
Declaration
public object Request { get; }
Property Value
Methods
|
Edit this page
View Source
Equals(GetSuccess)
Declaration
public bool Equals(GetSuccess other)
Parameters
Returns
|
Edit this page
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
Get<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 Parameters
Name |
Description |
T |
Replicated data.
|
Exceptions
Type |
Condition |
KeyNotFoundException |
Thrown when no value for provided key was found.
|
TimeoutException |
Thrown when response with given consistency didn't arrive within specified timeout.
|
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods