Enum Class WireCompression

java.lang.Object
java.lang.Enum<WireCompression>
com.loomcache.common.protocol.WireCompression
All Implemented Interfaces:
Serializable, Comparable<WireCompression>, Constable

public enum WireCompression extends Enum<WireCompression>
Optional transport compression negotiated by PROTOCOL_HELLO.
  • Enum Constant Details

  • Field Details

    • BODY_LENGTH_THRESHOLD_BYTES

      public static final int BODY_LENGTH_THRESHOLD_BYTES
      See Also:
  • Method Details

    • values

      public static WireCompression[] 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

      public static WireCompression valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • flag

      public byte flag()
    • protocolFeature

      public @Nullable ProtocolFeatures protocolFeature()
    • enabled

      public boolean enabled()
    • supportedProtocolFeatures

      public static EnumSet<ProtocolFeatures> supportedProtocolFeatures()
    • negotiate

      public static WireCompression negotiate(EnumSet<ProtocolFeatures> localFeatures, long peerFeatureBitmap)