|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface Subscribe
Subscribe to the "value", or topic. This annotation will create a 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.
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".
| Required Element Summary | |
|---|---|
String |
value
The value that will be used to create or lookup a Broadcaster |
| Optional Element Summary | |
|---|---|
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. |
| Element Detail |
|---|
public abstract String value
Broadcaster
Broadcasterpublic abstract Class<? extends AtmosphereResourceEventListener>[] listeners
AtmosphereResourceEventListener to the broadcast operation.
public abstract boolean writeEntity
public abstract int timeout
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||