Package com.datastax.driver.core
Class ProtocolFeatureStore
- java.lang.Object
-
- com.datastax.driver.core.ProtocolFeatureStore
-
public class ProtocolFeatureStore extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeKey<ProtocolFeatureStore>CHANNEL_KEYstatic ProtocolFeatureStoreEMPTYInstance ofProtocolFeatureStoreinitialized with default values.
-
Constructor Summary
Constructors Constructor Description ProtocolFeatureStore(ShardingInfo.ConnectionShardingInfo connectionShardingInfo, LwtInfo lwtInfo, TabletInfo tabletInfo, boolean useMetadataId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ShardingInfo.ConnectionShardingInfogetConnectionShardingInfo()LwtInfogetLwtInfo()booleanisUseMetadataId()static ProtocolFeatureStoreloadFromChannel(Channel channel)static ProtocolFeatureStoreparseSupportedOptions(Map<String,List<String>> supported)voidpopulateStartupOptions(ProtocolVersion protocolVersion, Map<String,String> options)voidstoreInChannel(Channel channel)Stores features in aHost.
-
-
-
Field Detail
-
CHANNEL_KEY
public static final AttributeKey<ProtocolFeatureStore> CHANNEL_KEY
-
EMPTY
public static final ProtocolFeatureStore EMPTY
Instance ofProtocolFeatureStoreinitialized with default values.
-
-
Constructor Detail
-
ProtocolFeatureStore
public ProtocolFeatureStore(ShardingInfo.ConnectionShardingInfo connectionShardingInfo, LwtInfo lwtInfo, TabletInfo tabletInfo, boolean useMetadataId)
-
-
Method Detail
-
parseSupportedOptions
public static ProtocolFeatureStore parseSupportedOptions(Map<String,List<String>> supported)
-
populateStartupOptions
public void populateStartupOptions(ProtocolVersion protocolVersion, Map<String,String> options)
-
storeInChannel
public void storeInChannel(Channel channel)
Stores features in aHost.- Parameters:
channel- an instance ofChannel
-
loadFromChannel
public static ProtocolFeatureStore loadFromChannel(Channel channel)
-
getConnectionShardingInfo
public ShardingInfo.ConnectionShardingInfo getConnectionShardingInfo()
-
getLwtInfo
public LwtInfo getLwtInfo()
-
isUseMetadataId
public boolean isUseMetadataId()
-
-