Deprecated
suspend(long).
Non-blocking continuation can abort the current request and arrange for it
to be retried when resume() is called or the timeout expires.
In order to supprt non-blocking continuations, it is important that
all actions taken by a filter or servlet before a call to
suspend(long) are either idempotent (can be retried) or
are made conditional on isPending so they are not performed on
retried requests.
With the appropriate HTTP Connector, this allows threadless waiting
for events (see org.mortbay.jetty.nio.SelectChannelConnector).
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: An arbitrary object associated with the continuationArbitrary object associated with the continuation for context. |
| public boolean | |
| public boolean | Returns: True if the continuation has just been created and has not yet suspended the request.Is this a newly created Continuation. |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | Returns: True if resume called or false if timeout.A timeout of < 0 will cause an immediate return. I timeout of 0 will wait indefinitely. timeout)Suspend handling. |
| getObject | back to summary |
|---|---|
| public Object getObject() Arbitrary object associated with the continuation for context.
| |
| isExpired | back to summary |
|---|---|
| public boolean isExpired() Get the resumed status?
| |
| isNew | back to summary |
|---|---|
| public boolean isNew() Is this a newly created Continuation.
A newly created continuation has not had
| |
| isPending | back to summary |
|---|---|
| public boolean isPending() Get the pending status?
A continuation is pending while the handling of a call to suspend has not completed.
For blocking continuations, pending is true only during the call to
| |
| isResumed | back to summary |
|---|---|
| public boolean isResumed() Get the resumed status?
| |
| reset | back to summary |
|---|---|
| public void reset() Reset the continuation. Cancel any pending status of the continuation. | |
| resume | back to summary |
|---|---|
| public void resume() Resume the request. Resume a suspended request. The passed event will be returned in the getObject method. | |
| setMutex | back to summary |
|---|---|
| public void setMutex(Object mutex) | |
| setObject | back to summary |
|---|---|
| public void setObject(Object o) Arbitrary object associated with the continuation for context.
| |
| suspend | back to summary |
|---|---|
| public boolean suspend(long timeout) Suspend handling. This method will suspend the request for the timeout or until resume is called.
| |