Annotation Type ServerSentEvent


@Retention(RUNTIME) @Target(TYPE) public @interface ServerSentEvent
Annotation that can be applied to classes that implement ServerSentEventConnectionCallback These classes will then have handlers registered under the given path. This path is a path template, any path parameter values can be retrieved from ServerSentEventConnection.getParameter(String) Only a single instance of the callback will be created at deployment time.
Author:
Stuart Douglas
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The path to register this SSE handler.
  • Element Details

    • value

      String value
      The path to register this SSE handler. This path can be a path template.