Package org.atmosphere.annotation
Annotation Type Asynchronous
-
@Target(METHOD) @Retention(RUNTIME) @Documented public @interface AsynchronousSuspend the response and use the Broadcaster associated withHeaderConfig.X_ATMOSPHERE_TRACKING_IDto publish the result.- Author:
- Jeanfrancois Arcand
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends org.atmosphere.cpr.BroadcastFilter>[]broadcastFilterAddBroadcastFilterto the broadcast operation.java.lang.StringcontentTypeIf the @Produces annotation is missing, this value will be used instead.java.lang.Class<? extends org.atmosphere.cpr.AtmosphereResourceEventListener>[]eventListenersAddAtmosphereResourceEventListenerto the broadcast operation.java.lang.StringheaderThe header value used to create aBroadcasterthat will be used to broadcast the asynchronous execution.intperiodThe time a connection will be suspended if no broadcast happens.booleanwaitForResourceWait forAtmosphereResourcebefore executing theBroadcaster.awaitAndBroadcast(Object, long, java.util.concurrent.TimeUnit).booleanwriteEntityWrite the returned entity back to the calling connection.
-
-
-
-
period
int period
The time a connection will be suspended if no broadcast happens. Same asSuspend.period()- Returns:
- The time a connection will be suspended if no broadcast happens.
- Default:
- 300000
-
-