Package com.datastax.driver.core
Class ProtocolFeatures.Feature
- java.lang.Object
-
- com.datastax.driver.core.ProtocolFeatures.Feature
-
- Enclosing class:
- ProtocolFeatures
public static class ProtocolFeatures.Feature extends Object
An abstract implementation of feature that may or not apply to a givenProtocolVersion.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSupportedBy(ProtocolVersion version)Determines whether the input version supports ths feature.booleanisSupportedBy(ProtocolVersion version, ProtocolFeatureStore featureStore)Determines whether the input version supports ths feature.
-
-
-
Method Detail
-
isSupportedBy
public boolean isSupportedBy(ProtocolVersion version)
Determines whether the input version supports ths feature. Does not take optional features fromProtocolFeatureStoreinto account.- Parameters:
version- the version to test against.- Returns:
- true if supported, false otherwise.
- See Also:
isSupportedBy(ProtocolVersion, ProtocolFeatureStore)
-
isSupportedBy
public boolean isSupportedBy(ProtocolVersion version, ProtocolFeatureStore featureStore)
Determines whether the input version supports ths feature. Take optional features fromProtocolFeatureStoreinto account if applicable.- Parameters:
version- the version to test against.featureStore- a feature store containing optional features.- Returns:
- rue if supported, false otherwise.
-
-