public class ProtocolContext extends Object
| Constructor and Description |
|---|
ProtocolContext(ProtocolVersion ver) |
ProtocolContext(ProtocolVersion ver,
EnumSet<ProtocolBitmaskFeature> features) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkFeatureSupported(ProtocolBitmaskFeature feature)
Check that feature is supported by the server.
|
EnumSet<ProtocolBitmaskFeature> |
features() |
boolean |
isFeatureSupported(ProtocolBitmaskFeature feature) |
boolean |
isFeatureSupported(ProtocolVersionFeature feature) |
static boolean |
isFeatureSupported(ProtocolVersion ver,
ProtocolVersionFeature feature)
Check if the feature was supported in the protocol version.
|
String |
toString() |
ProtocolVersion |
version() |
public ProtocolContext(ProtocolVersion ver)
ver - Protocol version.public ProtocolContext(ProtocolVersion ver, EnumSet<ProtocolBitmaskFeature> features)
ver - Protocol version.features - Supported features.public boolean isFeatureSupported(ProtocolBitmaskFeature feature)
true if bitmask protocol feature supported.public void checkFeatureSupported(ProtocolBitmaskFeature feature) throws ClientFeatureNotSupportedByServerException
feature - Feature.ClientFeatureNotSupportedByServerException - If feature is not supported by the server.public boolean isFeatureSupported(ProtocolVersionFeature feature)
true if protocol version feature supported.public EnumSet<ProtocolBitmaskFeature> features()
public ProtocolVersion version()
public static boolean isFeatureSupported(ProtocolVersion ver, ProtocolVersionFeature feature)
ver - Protocol version.feature - Feature which support should be checked.true if the feature was supported in the protocol version.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023