Package org.atmosphere.annotation
Annotation Type Subscribe
-
@Target(METHOD) @Retention(RUNTIME) @Documented public @interface SubscribeSubscribe to the "value", or topic. This annotation will create aBroadcasterwith the value as ID, and suspend the underlying connection. This annotation does the same asSuspend, but create the Broadcaster automatically from the value. That annotation doesn't allow configuring theSuspend.outputComments()value. The default value is set to false. If you want to support http-streaming, make sure your client set theHeaderConfig.X_ATMOSPHERE_TRANSPORTheader to "streaming".- Author:
- Jeanfrancois Arcand
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringvalueThe value that will be used to create or lookup aBroadcaster
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends org.atmosphere.cpr.AtmosphereResourceEventListener>[]listenersAddAtmosphereResourceEventListenerto the broadcast operation.inttimeoutThe timeout in millseconds before the connection is resumed.booleanwriteEntityWrite the returned entity back to the calling connection.
-