org.apache.cocoon.components.flow
Class ContinuationsManagerImpl.HolderAwareWebContinuation

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.flow.WebContinuation
          extended by org.apache.cocoon.components.flow.ContinuationsManagerImpl.HolderAwareWebContinuation
All Implemented Interfaces:
Comparable, LogEnabled
Enclosing class:
ContinuationsManagerImpl

protected static class ContinuationsManagerImpl.HolderAwareWebContinuation
extends WebContinuation

WebContinuation extension that holds also the information about the holder. This information is needed to cleanup a proper holder after continuation's expiration time.


Field Summary
 
Fields inherited from class org.apache.cocoon.components.flow.WebContinuation
children, continuation, disposer, id, interpreterId, lastAccessTime, parentContinuation, timeToLive, userObject
 
Constructor Summary
ContinuationsManagerImpl.HolderAwareWebContinuation(String id, Object continuation, WebContinuation parentContinuation, int timeToLive, String interpreterId, ContinuationsDisposer disposer, ContinuationsManagerImpl.WebContinuationsHolder continuationsHolder)
           
 
Method Summary
 int compareTo(Object other)
          Compares the expiration time of this instance with that of the WebContinuation passed as argument.
 ContinuationsManagerImpl.WebContinuationsHolder getContinuationsHolder()
           
 
Methods inherited from class org.apache.cocoon.components.flow.WebContinuation
detachFromParent, display, display, dispose, disposed, equals, getAttribute, getAttributeNames, getChildren, getContinuation, getContinuation, getId, getInterpreterId, getLastAccessTime, getParentContinuation, getTimeToLive, getUserObject, hasExpired, hashCode, interpreterMatches, removeAttribute, setAttribute, setUserObject, updateLastAccessTime
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuationsManagerImpl.HolderAwareWebContinuation

public ContinuationsManagerImpl.HolderAwareWebContinuation(String id,
                                                           Object continuation,
                                                           WebContinuation parentContinuation,
                                                           int timeToLive,
                                                           String interpreterId,
                                                           ContinuationsDisposer disposer,
                                                           ContinuationsManagerImpl.WebContinuationsHolder continuationsHolder)
Method Detail

getContinuationsHolder

public ContinuationsManagerImpl.WebContinuationsHolder getContinuationsHolder()

compareTo

public int compareTo(Object other)
Description copied from class: WebContinuation
Compares the expiration time of this instance with that of the WebContinuation passed as argument.

Note: this class has a natural ordering that is inconsistent with equals.

.

Specified by:
compareTo in interface Comparable
Overrides:
compareTo in class WebContinuation
Parameters:
other - an Object value, which should be a WebContinuation instance
Returns:
an int value


Copyright ? 1999-2007 The Apache Software Foundation. All Rights Reserved.