Package org.atmosphere.cpr
Record Class Action
java.lang.Object
java.lang.Record
org.atmosphere.cpr.Action
An Action is used by
AtmosphereInterceptor, AsyncSupport and AtmosphereFramework to determine
what to do with a request, e.g suspend it, resume it, etc.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAction()Action(Action.TYPE type) Action(Action.TYPE type, long timeout) Creates an instance of aActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longtimeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
CANCELLED
-
CONTINUE
-
CREATED
-
RESUME
-
SUSPEND
-
DESTROYED
-
SKIP_ATMOSPHEREHANDLER
-
-
Constructor Details
-
Action
-
Action
public Action() -
Action
Creates an instance of aActionrecord class.- Parameters:
type- the value for thetyperecord componenttimeout- the value for thetimeoutrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
timeout
public long timeout()Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-