Enum DseProtocolVersion

    • 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 name
        NullPointerException - if the argument is null
      • getCode

        public int getCode()
        Description copied from interface: ProtocolVersion
        A numeric code that uniquely identifies the version (this is the code used in network frames).
        Specified by:
        getCode in interface ProtocolVersion
      • isBeta

        public boolean isBeta()
        Description copied from interface: ProtocolVersion
        Whether 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:
        isBeta in interface ProtocolVersion