public enum DseProtocolVersion extends Enum<DseProtocolVersion> implements com.datastax.oss.driver.api.core.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() |
boolean |
isBeta() |
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.
|
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()
getCode
in interface com.datastax.oss.driver.api.core.ProtocolVersion
public boolean isBeta()
isBeta
in interface com.datastax.oss.driver.api.core.ProtocolVersion
Copyright © 2017–2019. All rights reserved.