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
ProtocolVersions are DefaultProtocolVersion instances.
| Modifier and Type | Field and Description |
|---|---|
static ProtocolVersion |
DEFAULT
The default version used for
detached objects. |
| 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 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–2019. All rights reserved.