public interface WriteType
This information is returned by Cassandra when a write timeout is raised, to indicate what type of write timed out. It is useful to decide which retry decision to adopt.
The only reason to model this as an interface (as opposed to an enum type) is to accommodate
for custom protocol extensions. If you're connecting to a standard Apache Cassandra cluster, all
WriteType
s are DefaultWriteType
instances.
Modifier and Type | Field and Description |
---|---|
static WriteType |
BATCH |
static WriteType |
BATCH_LOG |
static WriteType |
CAS |
static WriteType |
CDC |
static WriteType |
COUNTER |
static WriteType |
SIMPLE |
static WriteType |
UNLOGGED_BATCH |
static WriteType |
VIEW |
Modifier and Type | Method and Description |
---|---|
String |
name()
The textual representation that the write type is encoded to in protocol frames.
|
static final WriteType SIMPLE
static final WriteType BATCH
static final WriteType UNLOGGED_BATCH
static final WriteType COUNTER
static final WriteType BATCH_LOG
static final WriteType CAS
static final WriteType VIEW
static final WriteType CDC
@NonNull String name()
Copyright © 2017–2024. All rights reserved.