Class UnavailableException
Exception thrown when the coordinator knows there is not enough replica alive to perform a query with the requested consistency level.
Inheritance
UnavailableException
Implements
Inherited Members
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 |