Class UnavailableException
Exception thrown when the coordinator knows there is not enough replica alive to perform a query with the requested consistency level.
Inheritance
object
Exception
UnavailableException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Cassandra
Assembly: Cassandra.dll
Syntax
public class UnavailableException : QueryExecutionException, ISerializable
Constructors
UnavailableException(ConsistencyLevel, int, int)
Declaration
public UnavailableException(ConsistencyLevel consistency, int required, int alive)
Parameters
Type | Name | Description |
---|---|---|
ConsistencyLevel | consistency | |
int | required | |
int | alive |
Properties
AliveReplicas
Gets the number of replica that were known to be alive by the Cassandra coordinator node when it tried to execute the operation.
Declaration
public int AliveReplicas { get; }
Property Value
Type | Description |
---|---|
int |
Consistency
Gets the consistency level of the operation triggering this unavailable exception.
Declaration
public ConsistencyLevel Consistency { get; }
Property Value
Type | Description |
---|---|
ConsistencyLevel |
RequiredReplicas
Gets the number of replica acknowledgements/responses required to perform the operation (with its required consistency level).
Declaration
public int RequiredReplicas { get; }
Property Value
Type | Description |
---|---|
int |
Implements
System.Runtime.Serialization.ISerializable