@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface Asynchronous
HeaderConfig.X_ATMOSPHERE_TRACKING_ID
to publish the result.| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.Class<? extends BroadcastFilter>[] |
broadcastFilter
Add
BroadcastFilter to the broadcast operation. |
java.lang.String |
contentType
If the @Produces annotation is missing, this value will be used instead.
|
java.lang.Class<? extends AtmosphereResourceEventListener>[] |
eventListeners
Add
AtmosphereResourceEventListener to the broadcast operation. |
java.lang.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 java.lang.Class<? extends BroadcastFilter>[] broadcastFilter
BroadcastFilter to the broadcast operation.public abstract java.lang.String header
Broadcaster that will be used to broadcast the
asynchronous execution.Broadcasterpublic abstract int period
Suspend.period()public abstract java.lang.Class<? extends AtmosphereResourceEventListener>[] eventListeners
AtmosphereResourceEventListener to the broadcast operation.Copyright © 2021. All Rights Reserved.