Class StreamSubscriptionSelector

java.lang.Object
com.eqixiac.equinix.fabric.model.implementation.StreamSubscriptionSelector

public class StreamSubscriptionSelector extends Object
Event or metric selector for a stream subscription, expressed as include/except expression lists (e.g. equinix.fabric.connection.*).

Prefer the include(...)/except(...) static factories - the two constructor parameters are identically-typed List<String>s with opposite semantics, so a positional swap silently inverts the subscription filter.

  • Constructor Details

    • StreamSubscriptionSelector

      public StreamSubscriptionSelector(List<String> include, List<String> except)
      Explicit constructor replacing the Lombok-generated @AllArgsConstructor: the argument order is pinned here in code (two identically-typed List<String> parameters with opposite semantics) rather than by field declaration order.
      Parameters:
      include - the expressions to include, or null
      except - the expressions to exclude, or null
  • Method Details

    • include

      public static StreamSubscriptionSelector include(List<String> expressions)
      Creates a selector that includes only the given expressions.
      Parameters:
      expressions - the expressions to include
      Returns:
      the selector
    • except

      public static StreamSubscriptionSelector except(List<String> expressions)
      Creates a selector that includes everything except the given expressions.
      Parameters:
      expressions - the expressions to exclude
      Returns:
      the selector