Annotation Interface Service


Identifies classes whose instances are services that interact with the Bayeux API.

A service can register callback methods by annotating them with Listener or with Subscription.

Service objects are configured by server annotation processors or by client annotationp processors.

Services can have an optional name that is used as a prefix for the org.cometd.bayeux.Session#getId() session identifier, thus helping in debug and logging.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Returns:
      The name of this service
      Default:
      ""