Enum Class Feature

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

public enum Feature extends Enum<Feature>
Feature flags for LoomCache protocol versions.

Each feature is introduced in a specific version and remains available in all subsequent versions with the same major version.

Version mapping: - v1.0.0+: BASIC_CACHE, CP_SUBSYSTEM, RESP_PROTOCOL, TRANSACTIONS, NEAR_CACHE, WIRE_COMPRESSION_* - v1.1.0+: PUB_SUB - v1.2.0+: SQL_QUERIES - v1.3.0+: STREAM_PIPELINES

  • Enum Constant Details

    • BASIC_CACHE

      public static final Feature BASIC_CACHE
      Basic cache operations (GET, PUT, DELETE). Available since v1.0.0.
    • PUB_SUB

      public static final Feature PUB_SUB
      Pub/Sub messaging system. Available since v1.1.0.
    • SQL_QUERIES

      public static final Feature SQL_QUERIES
      SQL query support. Available since v1.2.0.
    • STREAM_PIPELINES

      public static final Feature STREAM_PIPELINES
      Pipelines for distributed stream processing. Available since v1.3.0.
    • CP_SUBSYSTEM

      public static final Feature CP_SUBSYSTEM
      CP subsystem for strong consistency. Available since v1.0.0.
    • RESP_PROTOCOL

      public static final Feature RESP_PROTOCOL
      RESP (Redis Serialization Protocol) support. Available since v1.0.0.
    • TRANSACTIONS

      public static final Feature TRANSACTIONS
      Distributed transactions. Available since v1.0.0.
    • NEAR_CACHE

      public static final Feature NEAR_CACHE
      Near cache functionality. Available since v1.0.0.
    • WIRE_COMPRESSION_LZ4

      public static final Feature WIRE_COMPRESSION_LZ4
      LZ4-compressed wire message bodies. Available since v1.0.0.
    • WIRE_COMPRESSION_ZSTD

      public static final Feature WIRE_COMPRESSION_ZSTD
      zstd-compressed wire message bodies. Available since v1.0.0.
  • Method Details

    • values

      public static Feature[] 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 Feature 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
    • introducedIn

      public LoomVersion introducedIn()
      Get the version in which this feature was introduced.
      Returns:
      the introducing version