com.datastax.oss.driver.internal.core.DefaultProtocolFeature Maven / Gradle / Ivy
The newest version!
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.datastax.oss.driver.internal.core;
/**
* Features that are commonly supported by most Apache Cassandra protocol versions.
*
* @see com.datastax.oss.driver.api.core.DefaultProtocolVersion
*/
public enum DefaultProtocolFeature implements ProtocolFeature {
/**
* The ability to leave variables unset in prepared statements.
*
* @see CASSANDRA-7304
*/
UNSET_BOUND_VALUES,
/**
* The ability to override the keyspace on a per-request basis.
*
* @see CASSANDRA-10145
*/
PER_REQUEST_KEYSPACE,
/**
* Support for smallint and tinyint types.
*
* @see CASSANDRA-8951
*/
SMALLINT_AND_TINYINT_TYPES,
/**
* Support for the date type.
*
* @see CASSANDRA-7523
*/
DATE_TYPE,
/**
* The ability to set a custom "now" time on statements (for testing purposes).
*
* @see CASSANDRA-14664
*/
NOW_IN_SECONDS,
/**
* The new protocol framing format introduced in Cassandra 4: wrapping multiple frames into a
* single "segment" to checksum (and possibly compress) them together.
*
* @see CASSANDRA-15299
*/
MODERN_FRAMING,
;
}