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 | Method and Description |
---|---|
String |
name()
The textual representation that the write type is encoded to in protocol frames.
|
@NonNull String name()
Copyright © 2017–2019. All rights reserved.