org.atmosphere.core.annotation
Annotation Type Suspend


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

Suspend the underlying response. Once suspended, a response migth be allowed to consume Broadcast events, depending on the scope ([@link Suspend#SCOPE}). By default, as response (HttpServletResponse, is suspended able to consume any events executed inside the same application (SCOPE.APPLICATION). The value can also be per suspended response (SCOPE.REQUEST) or available to other application (SCOPE.VM).

Author:
Jeanfrancois Arcand

Optional Element Summary
 Suspend.SCOPE scope
           
 int value
          How long a respons stay suspended, default is -1
 

value

public abstract int value
How long a respons stay suspended, default is -1

Returns:
Default:
-1

scope

public abstract Suspend.SCOPE scope
Default:
org.atmosphere.core.annotation.Suspend.SCOPE.APPLICATION


Copyright © 2009 SUN Microsystems. All Rights Reserved.