Package com.datastax.dse.driver.api.core
Enum DseProtocolVersion
- java.lang.Object
-
- java.lang.Enum<DseProtocolVersion>
-
- com.datastax.dse.driver.api.core.DseProtocolVersion
-
- All Implemented Interfaces:
ProtocolVersion,Serializable,Comparable<DseProtocolVersion>
public enum DseProtocolVersion extends Enum<DseProtocolVersion> implements ProtocolVersion
A DSE-specific protocol version.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 viaDefaultProtocolVersion.V3.DSE 4.6 and earlier are not supported by this version of the driver, use the 1.x series.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()A numeric code that uniquely identifies the version (this is the code used in network frames).booleanisBeta()Whether the protocol version is in a beta status.booleansupportsShardingInfo()Whether sharding info is supported in this protocol versionstatic DseProtocolVersionvalueOf(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.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.datastax.oss.driver.api.core.ProtocolVersion
name
-
-
-
-
Enum Constant Detail
-
DSE_V1
public static final DseProtocolVersion DSE_V1
Version 1, supported by DSE 5.1.0 and above.
-
DSE_V2
public static final DseProtocolVersion DSE_V2
Version 2, supported by DSE 6 and above.
-
-
Method Detail
-
values
public static DseProtocolVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DseProtocolVersion c : DseProtocolVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DseProtocolVersion valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode()
Description copied from interface:ProtocolVersionA numeric code that uniquely identifies the version (this is the code used in network frames).- Specified by:
getCodein interfaceProtocolVersion
-
isBeta
public boolean isBeta()
Description copied from interface:ProtocolVersionWhether the protocol version is in a beta status.Beta versions are intended for Cassandra development. They should not be used in a regular application, as beta features may break at any point.
- Specified by:
isBetain interfaceProtocolVersion
-
supportsShardingInfo
public boolean supportsShardingInfo()
Description copied from interface:ProtocolVersionWhether sharding info is supported in this protocol version- Specified by:
supportsShardingInfoin interfaceProtocolVersion
-
-