Package org.atmosphere.annotation
Annotation Interface Broadcast
Broadcast to all suspended response the value of the method annotated with this annotation.
- Author:
- Jeanfrancois Arcand
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintShould the broadcast be delayed? A value of 0 means the broadcast be delayed until a normal broadcast operation happens.Class<? extends org.atmosphere.cpr.BroadcastFilter>[]AddBroadcastFilters to the broadcast operation.booleanResume all suspended response on the first broadcast operation.booleanWrite the returned entity back to the calling connection.
-
Element Details
-
value
String value- Default:
"/*"
-
filters
Class<? extends org.atmosphere.cpr.BroadcastFilter>[] filtersAddBroadcastFilters to the broadcast operation.- Default:
{}
-
resumeOnBroadcast
boolean resumeOnBroadcastResume all suspended response on the first broadcast operation.- Default:
false
-
delay
int delayShould the broadcast be delayed? A value of 0 means the broadcast be delayed until a normal broadcast operation happens. Any other value will be evaluated as seconds- Default:
-1
-
writeEntity
boolean writeEntityWrite the returned entity back to the calling connection. Default is false.- Returns:
- true if the entity needs to be written back to the calling connection.
- Default:
true
-