Java Doc for ContinuationManager.java in  » Web-Framework » rife-1.6.1 » com » uwyn » rife » continuations » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » rife 1.6.1 » com.uwyn.rife.continuations 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.uwyn.rife.continuations.ContinuationManager

ContinuationManager
public class ContinuationManager (Code)
Manages a collection of ContinuationContext instances.

A ContinuationManager instance is typically associated with a specific context, like for example a com.uwyn.rife.engine.Site for RIFE's web engine. It's up to you to provide an API to your users if you want them to be able to interact with the appropriate continuations manager. For instance, in RIFE, to gain access to the ContinuationManager of an active com.uwyn.rife.engine.ElementSupport instance, the following code can be used: getElementInfo().getSite().getContinuationManager() . Your application or library will have to provide its own.
author:
   Geert Bevin (gbevin[remove] at uwyn dot com)
version:
   $Revision: 3812 $
See Also:   ContinuationManager
since:
   1.6




Constructor Summary
public  ContinuationManager(ContinuationConfigRuntime config)
     Instantiates a new continuation manager and uses the default values for the continuations duration and purging.

Method Summary
public  voidaddContext(ContinuationContext<T> context)
     Adds a particular ContinuationContext to this manager.
public  ContinuationConfigRuntimegetConfigRuntime()
     Retrieves the runtime configuration that was provided to the manager at instantiation.
public  ContinuationContext<T>getContext(String id)
     Retrieves a ContinuationContext instance from this continuation manager.
public  booleanisExpired(ContinuationContext<T> context)
     Checks if a particular continuation context is expired.
public  voidremoveContext(String id)
     Removes a ContinuationContext instance from this continuation manager.
public  ContinuationContext<T>resumeContext(String id)
     Creates a new ContinuationContext from an existing one so that the execution can be resumed.

If the existing continuation context couldn't be found, no new one can be created.



Constructor Detail
ContinuationManager
public ContinuationManager(ContinuationConfigRuntime config)(Code)
Instantiates a new continuation manager and uses the default values for the continuations duration and purging.
Parameters:
  config - the runtime configuration that will be used be thismanager
since:
   1.6




Method Detail
addContext
public void addContext(ContinuationContext<T> context)(Code)
Adds a particular ContinuationContext to this manager.
Parameters:
  context - the context that will be added
since:
   1.6



getConfigRuntime
public ContinuationConfigRuntime getConfigRuntime()(Code)
Retrieves the runtime configuration that was provided to the manager at instantiation. this manager's runtime configuration
since:
   1.6



getContext
public ContinuationContext<T> getContext(String id)(Code)
Retrieves a ContinuationContext instance from this continuation manager.
Parameters:
  id - the unique string that identifies the ContinuationContext instance that has to be retrieved the ContinuationContext instance that correspondsto the provided identifier; or

null if the identifier isn't known by the continuationmanager.
See Also:   ContinuationManager.removeContext
since:
   1.6




isExpired
public boolean isExpired(ContinuationContext<T> context)(Code)
Checks if a particular continuation context is expired.
Parameters:
  context - the context that needs to be verified true if the continuation context is expired; and

false otherwise
See Also:   com.uwyn.rife.config.RifeConfig.Engine.getContinuationDuration
since:
   1.6




removeContext
public void removeContext(String id)(Code)
Removes a ContinuationContext instance from this continuation manager.
Parameters:
  id - the unique string that identifies the ContinuationContext instance that will be removed
See Also:   ContinuationManager.getContext
since:
   1.6



resumeContext
public ContinuationContext<T> resumeContext(String id) throws CloneNotSupportedException(Code)
Creates a new ContinuationContext from an existing one so that the execution can be resumed.

If the existing continuation context couldn't be found, no new one can be created. However, if it could be found, the result of ContinuationConfigRuntime.cloneContinuations will determine whether the existing continuation context will be cloned to create the new one, or if its state will be reused.

The new continuation context will have its own unique ID.
Parameters:
  id - the ID of the existing continuation context the new ContinuationContext ; or

null  if the existing continuation context couldn't be found
throws:
  CloneNotSupportedException -
since:
   1.6




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.