public enum DefaultProtocolVersion extends Enum<DefaultProtocolVersion> implements ProtocolVersion
Legacy versions 1 (Cassandra 1.2) and 2 (Cassandra 2.0) are not supported anymore.
Enum Constant and Description |
---|
V3
Version 3, supported by Cassandra 2.1 and above.
|
V4
Version 4, supported by Cassandra 2.2 and above.
|
V5
Version 5, currently supported as a beta preview in Cassandra 3.10 and above.
|
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.
|
static DefaultProtocolVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultProtocolVersion[] |
values()
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
name
public static final DefaultProtocolVersion V3
public static final DefaultProtocolVersion V4
public static final DefaultProtocolVersion V5
Do not use this in production.
ProtocolVersion.isBeta()
public static DefaultProtocolVersion[] values()
for (DefaultProtocolVersion c : DefaultProtocolVersion.values()) System.out.println(c);
public static DefaultProtocolVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode()
ProtocolVersion
getCode
in interface ProtocolVersion
public boolean isBeta()
ProtocolVersion
Beta versions are intended for Cassandra development. They should not be used in a regular application, as beta features may break at any point.
isBeta
in interface ProtocolVersion
Copyright © 2017–2021. All rights reserved.