org.atmosphere.annotation
Annotation Type Schedule


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

Schedule periodic broadcast operations to the set of suspended response.

Author:
Jeanfrancois Arcand

Optional Element Summary
 int period
          The period for broadcast (in second).
 boolean resumeOnBroadcast
          Resume all suspended response on the first broadcast operation.
 int waitFor
          The period before starting the broadcast (in second).
 

period

public abstract int period
The period for broadcast (in second).

Returns:
Default:
60

waitFor

public abstract int waitFor
The period before starting the broadcast (in second).

Returns:
Default:
0

resumeOnBroadcast

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

Default:
false


Copyright © 2015. All Rights Reserved.