@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface Subscribe
Broadcaster with the
value as ID, and suspend the underlying connection. This annotation does the same as Suspend, but create
the Broadcaster automatically from the value.
That annotation doesn't allow configuring the Suspend.outputComments() value. The
default value is set to false. If you want to support http-streaming, make sure your client set the HeaderConfig.X_ATMOSPHERE_TRANSPORT
header to "streaming".| Modifier and Type | Required Element and Description |
|---|---|
String |
value
The value that will be used to create or lookup a
Broadcaster |
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends AtmosphereResourceEventListener>[] |
listeners
Add
AtmosphereResourceEventListener to the broadcast operation. |
int |
timeout
The timeout in millseconds before the connection is resumed.
|
boolean |
writeEntity
Write the returned entity back to the calling connection.
|
public abstract String value
BroadcasterBroadcasterpublic abstract Class<? extends AtmosphereResourceEventListener>[] listeners
AtmosphereResourceEventListener to the broadcast operation.Copyright © 2016. All rights reserved.