Top Fields Constructors Methods
org.mortbay.util.ajax

public Class WaitingContinuation

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

Deprecated

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

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv Object
pack-priv boolean
pack-priv Object
pack-priv boolean
pack-priv boolean

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Object
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
object
)

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.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_expiredback to summary
pack-priv boolean _expired
_mutexback to summary
pack-priv Object _mutex
_newback to summary
pack-priv boolean _new
_objectback to summary
pack-priv Object _object
_pendingback to summary
pack-priv boolean _pending
_resumedback to summary
pack-priv boolean _resumed

Constructor Detail

WaitingContinuationback to summary
public WaitingContinuation()
WaitingContinuationback to summary
public WaitingContinuation(Object mutex)

Method Detail

getMutexback to summary
public Object getMutex()
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 object)

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

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

Arbitrary object associated with the continuation for context.

Parameters
object: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.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.