Class StreamSubscriptionSelector
java.lang.Object
com.eqixiac.equinix.fabric.model.implementation.StreamSubscriptionSelector
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 Summary
ConstructorsConstructorDescriptionStreamSubscriptionSelector(List<String> include, List<String> except) Explicit constructor replacing the Lombok-generated@AllArgsConstructor: the argument order is pinned here in code (two identically-typedList<String>parameters with opposite semantics) rather than by field declaration order. -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamSubscriptionSelectorCreates a selector that includes everything except the given expressions.static StreamSubscriptionSelectorCreates a selector that includes only the given expressions.
-
Constructor Details
-
StreamSubscriptionSelector
Explicit constructor replacing the Lombok-generated@AllArgsConstructor: the argument order is pinned here in code (two identically-typedList<String>parameters with opposite semantics) rather than by field declaration order.- Parameters:
include- the expressions to include, ornullexcept- the expressions to exclude, ornull
-
-
Method Details
-
include
Creates a selector that includes only the given expressions.- Parameters:
expressions- the expressions to include- Returns:
- the selector
-
except
Creates a selector that includes everything except the given expressions.- Parameters:
expressions- the expressions to exclude- Returns:
- the selector
-