Annotation Interface SseEventFilter


@Target(METHOD) @Retention(RUNTIME) public @interface SseEventFilter
Used when not all SSE events streamed from the server should be included in the event stream returned by the client.

IMPORTANT: implementations MUST contain a no-args constructor

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Predicate which decides whether an event should be included in the event stream returned by the client.
  • Element Details

    • value

      Class<? extends Predicate<SseEvent<String>>> value
      Predicate which decides whether an event should be included in the event stream returned by the client.