Top Fields Constructors Methods
org.mortbay.jetty

public Class Servlet3Continuation

extends Object
implements Continuation
Class Inheritance
All Implemented Interfaces
org.mortbay.util.ajax.Continuation
Imports
org.mortbay.util.ajax.Continuation

Deprecated

as a consequence of Continuation being deprecated. See corresponding docs for further information.

Field Summary

Modifier and TypeField and Description
pack-priv Object
pack-priv Request
pack-priv RetryRequest
_retry

Deprecated as a consequence of RetryRequest being deprecated.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Object
getObject()

Implements org.mortbay.util.ajax.Continuation.getObject.

Arbitrary object associated with the continuation for context.
public boolean
isExpired()

Implements org.mortbay.util.ajax.Continuation.isExpired.

Get the resumed status?
public boolean
isNew()

Implements org.mortbay.util.ajax.Continuation.isNew.

Is this a newly created Continuation.
public boolean
isPending()

Implements org.mortbay.util.ajax.Continuation.isPending.

Get the pending status?
public boolean
isResumed()

Implements org.mortbay.util.ajax.Continuation.isResumed.

Get the resumed status?
public void
reset()

Implements org.mortbay.util.ajax.Continuation.reset.

Reset the continuation.
public void
resume()

Implements org.mortbay.util.ajax.Continuation.resume.

Resume the request.
public void
public void
setObject(Object
An arbitrary object to associate with the continuation
o
)

Implements org.mortbay.util.ajax.Continuation.setObject.

Arbitrary object associated with the continuation for context.
public boolean
suspend(long
A timeout of < 0 will cause an immediate return. I timeout of 0 will wait indefinitely.
timeout
)

Implements org.mortbay.util.ajax.Continuation.suspend.

Suspend handling.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_objectback to summary
pack-priv Object _object
_requestback to summary
pack-priv Request _request
_retryback to summary
pack-priv RetryRequest _retry

Deprecated

as a consequence of RetryRequest being deprecated. See corresponding docs for further information.

Constructor Detail

Servlet3Continuationback to summary
pack-priv Servlet3Continuation(Request request)

Method Detail

getObjectback to summary
public Object getObject()

Implements org.mortbay.util.ajax.Continuation.getObject.

Doc from org.mortbay.util.ajax.Continuation.getObject.

Arbitrary object associated with the continuation for context.

Returns:Object

An arbitrary object associated with the continuation

isExpiredback to summary
public boolean isExpired()

Implements org.mortbay.util.ajax.Continuation.isExpired.

Doc from org.mortbay.util.ajax.Continuation.isExpired.

Get the resumed status?

Returns:boolean

True if the continuation is has been expired.

isNewback to summary
public boolean isNew()

Implements org.mortbay.util.ajax.Continuation.isNew.

Doc from org.mortbay.util.ajax.Continuation.isNew.

Is this a newly created Continuation.

A newly created continuation has not had getEvent(long) called on it.

Returns:boolean

True if the continuation has just been created and has not yet suspended the request.

isPendingback to summary
public boolean isPending()

Implements org.mortbay.util.ajax.Continuation.isPending.

Doc from org.mortbay.util.ajax.Continuation.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 suspend(long). For non-blocking continuations, pending is true until a second call to suspend(long) or a call to reset(), thus this method can be used to determine if a request is being retried.

Returns:boolean

True if the continuation is handling a call to suspend.

isResumedback to summary
public boolean isResumed()

Implements org.mortbay.util.ajax.Continuation.isResumed.

Doc from org.mortbay.util.ajax.Continuation.isResumed.

Get the resumed status?

Returns:boolean

True if the continuation is has been resumed.

resetback to summary
public void reset()

Implements org.mortbay.util.ajax.Continuation.reset.

Doc from org.mortbay.util.ajax.Continuation.reset.

Reset the continuation. Cancel any pending status of the continuation.

resumeback to summary
public void resume()

Implements org.mortbay.util.ajax.Continuation.resume.

Doc from org.mortbay.util.ajax.Continuation.resume.

Resume the request. Resume a suspended request. The passed event will be returned in the getObject method.

setMutexback to summary
public void setMutex(Object mutex)

Implements org.mortbay.util.ajax.Continuation.setMutex.

setObjectback to summary
public void setObject(Object o)

Implements org.mortbay.util.ajax.Continuation.setObject.

Doc from org.mortbay.util.ajax.Continuation.setObject.

Arbitrary object associated with the continuation for context.

Parameters
o:Object

An arbitrary object to associate with the continuation

suspendback to summary
public boolean suspend(long timeout)

Implements org.mortbay.util.ajax.Continuation.suspend.

Doc from org.mortbay.util.ajax.Continuation.suspend.

Suspend handling. This method will suspend the request for the timeout or until resume is called.

Parameters
timeout:long

A timeout of < 0 will cause an immediate return. I timeout of 0 will wait indefinitely.

Returns:boolean

True if resume called or false if timeout.