public enum WriteType extends Enum<WriteType>
This information is returned by Cassandra when a write timeout is raised to indicate what type of write timed out. This information is useful to decide which retry policy to adopt.
Enum Constant and Description |
---|
BATCH
A write to a multiple partition key that used the distributed batch log to ensure atomicity
(atomicity meaning that if any statement in the batch succeeds, all will eventually succeed).
|
BATCH_LOG
The initial write to the distributed batch log that Cassandra performs internally before a
BATCH write.
|
CAS
A conditional write.
|
CDC
Indicates that the timeout was related to acquiring space for change data capture logs for cdc
tracked tables.
|
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.
|
VIEW
Indicates that the timeout was related to acquiring locks needed for updating materialized
views affected by write operation.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.public static final WriteType VIEW
public static final WriteType CDC
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 nameNullPointerException
- if the argument is nullCopyright © 2012–2024. All rights reserved.