public enum DseProtocolVersion extends Enum<DseProtocolVersion> implements ProtocolVersion
Legacy DSE versions did not have a specific version, but instead reused a Cassandra protocol
version: DSE 5.0 is supported via DefaultProtocolVersion.V4
, and DSE 4.7 and 4.8 via
DefaultProtocolVersion.V3
.
DSE 4.6 and earlier are not supported by this version of the driver, use the 1.x series.
Enum Constant and Description |
---|
DSE_V1
Version 1, supported by DSE 5.1.0 and above.
|
DSE_V2
Version 2, supported by DSE 6 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.
|
boolean |
supportsShardingInfo()
Whether sharding info is supported in this protocol version
|
static DseProtocolVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DseProtocolVersion[] |
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 DseProtocolVersion DSE_V1
public static final DseProtocolVersion DSE_V2
public static DseProtocolVersion[] values()
for (DseProtocolVersion c : DseProtocolVersion.values()) System.out.println(c);
public static DseProtocolVersion 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
public boolean supportsShardingInfo()
ProtocolVersion
supportsShardingInfo
in interface ProtocolVersion
Copyright © 2017–2024. All rights reserved.