Package org.atmosphere.cpr
Class Action
- java.lang.Object
-
- org.atmosphere.cpr.Action
-
public final class Action extends java.lang.ObjectAn Action is used byAtmosphereInterceptor,AsyncSupportandAtmosphereFrameworkto determine what to do with a request, e.g suspend it, resume it, etc.- Author:
- Jeanfrancois Arcand
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAction.TYPEThe action's type.
-
Constructor Summary
Constructors Constructor Description Action()Action(Action.TYPE type)Action(Action.TYPE type, boolean immutable)Action(Action.TYPE type, long timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()longtimeout()Actiontimeout(long timeout)java.lang.StringtoString()Action.TYPEtype()Actiontype(Action.TYPE type)
-
-
-
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
-
SKIP_ATMOSPHEREHANDLER
public static final Action SKIP_ATMOSPHEREHANDLER
-
-
Constructor Detail
-
Action
public Action()
-
Action
public Action(Action.TYPE type)
-
Action
public Action(Action.TYPE type, boolean immutable)
-
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(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-