|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<WriteType>
com.datastax.driver.core.WriteType
public enum WriteType
The type of a Cassandra write query.
This information is returned by Cassandra when a write timeout is raised to indicate what type of write timeouted. This information is useful to decide which retry policy to adopt.
Enum Constant Summary | |
---|---|
BATCH
A write to a multiple partition key that used the distributed batch log to ensure atomicity. |
|
BATCH_LOG
The initial write to the distributed batch log that Cassandra performs internally before a BATCH write. |
|
CAS
A conditional write. |
|
COUNTER
A counter write (that can be for one or multiple partition key). |
|
SIMPLE
A write to a single partition key. |
|
UNLOGGED_BATCH
A write to a multiple partition key that doesn't use the distributed batch log. |
Method Summary | |
---|---|
static WriteType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static WriteType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final WriteType SIMPLE
public static final WriteType BATCH
public static final WriteType UNLOGGED_BATCH
public static final WriteType COUNTER
public static final WriteType BATCH_LOG
public static final WriteType CAS
WriteType
, the timeout has happened while doing the compare-and-swap for
an conditional update. In this case, the update may or may not have been applied.
Method Detail |
---|
public static WriteType[] values()
for (WriteType c : WriteType.values()) System.out.println(c);
public static WriteType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |