Enum Class WireCompression
- All Implemented Interfaces:
Serializable, Comparable<WireCompression>, Constable
Optional transport compression negotiated by PROTOCOL_HELLO.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()byteflag()static WireCompressionnegotiate(EnumSet<ProtocolFeatures> localFeatures, long peerFeatureBitmap) @Nullable ProtocolFeaturesstatic EnumSet<ProtocolFeatures> static WireCompressionReturns the enum constant of this class with the specified name.static WireCompression[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
LZ4
-
ZSTD
-
-
Field Details
-
BODY_LENGTH_THRESHOLD_BYTES
public static final int BODY_LENGTH_THRESHOLD_BYTES- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
flag
public byte flag() -
protocolFeature
-
enabled
public boolean enabled() -
supportedProtocolFeatures
-
negotiate
public static WireCompression negotiate(EnumSet<ProtocolFeatures> localFeatures, long peerFeatureBitmap)
-