Package org.apache.cassandra.exceptions
Class UnavailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.cassandra.exceptions.CassandraException
org.apache.cassandra.exceptions.RequestExecutionException
org.apache.cassandra.exceptions.UnavailableException
- All Implemented Interfaces:
Serializable,TransportException
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUnavailableException(String msg, ConsistencyLevel consistency, int required, int alive) -
Method Summary
Modifier and TypeMethodDescriptionstatic UnavailableExceptioncreate(ConsistencyLevel consistency, int required, int alive) static UnavailableExceptioncreate(ConsistencyLevel consistency, int required, int requiredFull, int alive, int aliveFull) static UnavailableExceptioncreate(ConsistencyLevel consistency, String dc, int required, int requiredFull, int alive, int aliveFull) Methods inherited from class org.apache.cassandra.exceptions.CassandraException
codeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.exceptions.TransportException
getMessage
-
Field Details
-
consistency
-
required
public final int required -
alive
public final int alive
-
-
Constructor Details
-
UnavailableException
-
-
Method Details
-
create
-
create
public static UnavailableException create(ConsistencyLevel consistency, int required, int requiredFull, int alive, int aliveFull) -
create
public static UnavailableException create(ConsistencyLevel consistency, String dc, int required, int requiredFull, int alive, int aliveFull)
-