org.atmosphere.cpr
Class Action

java.lang.Object
  extended by org.atmosphere.cpr.Action

public final class Action
extends Object

An Action is used by AtmosphereInterceptor, AsyncSupport and AtmosphereFramework to determine what to do with a request, e.g suspend it, resume it, etc.

Author:
Jeanfrancois Arcand

Nested Class Summary
static class Action.TYPE
          The action's type.
 
Field Summary
static Action CANCELLED
           
static Action CONTINUE
           
static Action CREATED
           
static Action DESTROYED
           
static Action RESUME
           
static Action SUSPEND
           
 
Constructor Summary
Action()
           
Action(Action.TYPE type)
           
Action(Action.TYPE type, long timeout)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 long timeout()
           
 Action timeout(long timeout)
           
 String toString()
           
 Action.TYPE type()
           
 Action type(Action.TYPE type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CANCELLED

public static final Action CANCELLED

CONTINUE

public static final Action CONTINUE

CREATED

public static final Action CREATED

RESUME

public static final Action RESUME

SUSPEND

public static final Action SUSPEND

DESTROYED

public static final Action DESTROYED
Constructor Detail

Action

public Action()

Action

public Action(Action.TYPE type)

Action

public Action(Action.TYPE type,
              long timeout)
Method Detail

type

public Action.TYPE type()

type

public Action type(Action.TYPE type)

timeout

public long timeout()

timeout

public Action timeout(long timeout)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.