|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Broadcast
Broadcast to all suspended response the value of the method annotated
with this annotation. The broadcast operation will block the calling thread of the annotated method, e.g API BroadcasterFuture.get() will
be invoked by the underlying container (Jersey). To use non blocking broadcast operation, inject a Broadcaster
or use a BroadcasterFactory to create Broadcaster.
| Optional Element Summary | |
|---|---|
int |
delay
Should the broadcast be delayed? A value of 0 means the broadcast be delayed until a normal broadcast operation happens. |
boolean |
resumeOnBroadcast
Resume all suspended response on the first broadcast operation. |
Class<? extends BroadcastFilter>[] |
value
Add BroadcastFilter to the broadcast operation. |
boolean |
writeEntity
Write the returned entity back to the calling connection. |
public abstract Class<? extends BroadcastFilter>[] value
BroadcastFilter to the broadcast operation.
public abstract boolean resumeOnBroadcast
public abstract int delay
public abstract boolean writeEntity
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||