public interface ProtocolVersion
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
ProtocolVersion
s are DefaultProtocolVersion
instances.
Modifier and Type | Field and Description |
---|---|
static ProtocolVersion |
DEFAULT
The default version used for
detached objects. |
static ProtocolVersion |
DSE_V1 |
static ProtocolVersion |
DSE_V2 |
static ProtocolVersion |
V3 |
static ProtocolVersion |
V4 |
static ProtocolVersion |
V5 |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
A numeric code that uniquely identifies the version (this is the code used in network frames).
|
boolean |
isBeta()
Whether the protocol version is in a beta status.
|
String |
name()
A string representation of the version.
|
static final ProtocolVersion V3
static final ProtocolVersion V4
static final ProtocolVersion V5
static final ProtocolVersion DSE_V1
static final ProtocolVersion DSE_V2
static final ProtocolVersion DEFAULT
detached
objects.int getCode()
@NonNull String name()
boolean isBeta()
Beta versions are intended for Cassandra development. They should not be used in a regular application, as beta features may break at any point.
Copyright © 2017–2021. All rights reserved.