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
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).
The initial write to the distributed batch log that Cassandra performs internally before a BATCH write.
A conditional write.
Indicates that the timeout was related to acquiring space for change data capture logs for cdc tracked tables.
A counter write (that can be for one or multiple partition key).
A write to a single partition key.
A write to a multiple partition key that doesn't use the distributed batch log.
Indicates that the timeout was related to acquiring locks needed for updating materialized views affected by write operation.
|Modifier and Type
|Method and Description
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
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);
Copyright © 2012–2024. All rights reserved.