@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 |
---|---|
Class<? extends BroadcastFilter>[] |
broadcastFilter
Add
BroadcastFilter to the broadcast operation. |
String |
contentType
If the @Produces annotation is missing, this value will be used instead.
|
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.Broadcaster
public abstract int period
Suspend.period()
public abstract Class<? extends AtmosphereResourceEventListener>[] eventListeners
AtmosphereResourceEventListener
to the broadcast operation.public abstract boolean writeEntity
public abstract String contentType
Copyright © 2016. All rights reserved.