org.atmosphere.annotation
Annotation Type Broadcast


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Broadcast

Broadcast to all suspended response the value of the method annotated with this annotation.

Author:
Jeanfrancois Arcand

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.
 

value

public abstract Class<? extends BroadcastFilter>[] value
Add BroadcastFilter to the broadcast operation.

Default:
{}

resumeOnBroadcast

public abstract boolean resumeOnBroadcast
Resume all suspended response on the first broadcast operation.

Default:
false

delay

public abstract int delay
Should 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


Copyright © 2009 SUN Microsystems. All Rights Reserved.