|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface Asynchronous
Suspend the response and use the Broadcaster associated with HeaderConfig.X_ATMOSPHERE_TRACKING_ID
to publish the result.
| Optional Element Summary | |
|---|---|
Class<? extends BroadcastFilter>[] |
broadcastFilter
Add BroadcastFilter to the broadcast operation. |
Class<? extends AtmosphereResourceEventListener>[] |
eventListeners
Add AtmosphereResourceEventListener to the broadcast operation. |
String |
header
The header value used to create a Broadcaster that will be used to broadcast the
asynchronous execution. |
int |
period
The time a connection will be suspended if no broadcast happens. |
boolean |
waitForResource
Wait for AtmosphereResource before executing the Broadcaster.awaitAndBroadcast(Object, long, java.util.concurrent.TimeUnit). |
boolean |
writeEntity
Write the returned entity back to the calling connection. |
public abstract boolean waitForResource
AtmosphereResource before executing the Broadcaster.awaitAndBroadcast(Object, long, java.util.concurrent.TimeUnit).
public abstract Class<? extends BroadcastFilter>[] broadcastFilter
BroadcastFilter to the broadcast operation.
public abstract String header
Broadcaster that will be used to broadcast the
asynchronous execution.
Broadcasterpublic abstract int period
Suspend.period()
public abstract Class<? extends AtmosphereResourceEventListener>[] eventListeners
AtmosphereResourceEventListener to the broadcast operation.
public abstract boolean writeEntity
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||