Java Doc for ContinuationContext.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.ContinuationContext

ContinuationContext
public class ContinuationContext implements Cloneable(Code)
Contains all contextual data of one particular continuation.

It also provides some static retrieval methods to be able to access active continuations.

Active continuations are managed in a ContinuationManager so that they can be easily retrieved.
author:
   Geert Bevin (gbevin[remove] at uwyn dot com)
version:
   $Revision: 3813 $
See Also:   ContinuationManager
since:
   1.6





Method Summary
public synchronized  voidaddRelatedId(String id)
     [PRIVATE AND UNSUPPORTED] Associates the ID of another continuation to this continuation.
public static  voidclearActiveContext()
     Clears the active currently continuation context for the executing thread.
public  ContinuationContextclone()
     [PRIVATE AND UNSUPPORTED] Creates a cloned instance of this continuation context, this clone is not a perfect copy but is intended to be a child continuation and all context data is setup for that.
public static  ContinuationContextcreateOrResetContext(Object executingInstance)
     [PRIVATE AND UNSUPPORTED] Creates a new continuation context or resets its expiration time.
public  voiddeactivate()
     Makes sure that this ContinuationContext is not the active one.
public  CallStategetActiveCallState()
     Retrieves the call state that is active during this continuation.
public static  ContinuationContextgetActiveContext()
     Retrieves the currently active continuation for the executing thread.
public static  StringgetActiveContextId()
     Retrieves the identifier of the currently active continuation for the current thread.
public  ObjectgetCallAnswer()
     Retrieves the answer that the call continuation stored in this context.
public  TgetContinuable()
     Returns the object instance in which this continuation was executing.
public  CallStategetCreatedCallState()
     Retrieves this continuation's call continuation creation state.
public  StringgetId()
     Retrieves the continuation ID.
public  intgetLabel()
     [PRIVATE AND UNSUPPORTED] Retrieves the number of the bytecode label where the continuation has to resume execution from.
public static  ContinuationContextgetLastContext()
     Retrieves the last active continuation for the executing thread.
public  ContinuationStackgetLocalStack()
     [PRIVATE AND UNSUPPORTED] Retrieves the local operand stack of this continuation.
public  ContinuationStackgetLocalVars()
     [PRIVATE AND UNSUPPORTED] Retrieves the local variable stack of this continuation.
public  ContinuationManagergetManager()
     Retrieves the manager of this ContinuationContext .
public  ContinuationContextgetParentContext()
     Retrieves the parent ContinuationContext of this ContinuationContext instance.
public  StringgetParentContextId()
     Retrieves the unique identifier of the parent continuation of this ContinuationContext instance.
public  StringgetParentId()
     Retrieves the ID of this continuation's parent.
 longgetStart()
    
public  booleanisPaused()
     Indicates whether this continuation is actually paused and can be resumed.
public  voidregisterContext()
     Registers this continuation in its manager, so that it can be retrieved later.
public synchronized  voidremove()
     Removes this ContinuationContext instance from its ContinuationManager .
public  voidremoveContextTree()
     Removes the entire continuation tree that this ContinuationContext instance belongs to from its ContinuationManager .
synchronized  voidresetId()
    
public synchronized  voidsetActiveCallState(CallState callState)
     Sets the active call state for this continuation.

This mainly passes on the call state that was created during a call continuation.

public static  voidsetActiveContext(ContinuationContext context)
     Replaces the active continuation context for the executing thread.
public synchronized  voidsetCallAnswer(Object answer)
     Set the answer to a call continuation.
public synchronized  voidsetCreatedCallState(CallState createdCallState)
     Sets the call continuation's state when a new call continuation is created.
public synchronized  voidsetLabel(int label)
     [PRIVATE AND UNSUPPORTED] Set the number of the bytecode label where the continuation has to resume execution from.
synchronized  voidsetManager(ContinuationManager manager)
    
public synchronized  voidsetParentId(String id)
     [PRIVATE AND UNSUPPORTED] Set the ID of this continuation's parent.
public synchronized  voidsetPaused(boolean paused)
     [PRIVATE AND UNSUPPORTED] Sets whether the continuation if paused.



Method Detail
addRelatedId
public synchronized void addRelatedId(String id)(Code)
[PRIVATE AND UNSUPPORTED] Associates the ID of another continuation to this continuation.

This method is used by the instrumented bytecode that provides continuations support, it's not intended for general use.
Parameters:
  id - the ID of another continuation that's related to thiscontinuation
since:
   1.6




clearActiveContext
public static void clearActiveContext()(Code)
Clears the active currently continuation context for the executing thread.
since:
   1.6



clone
public ContinuationContext clone() throws CloneNotSupportedException(Code)
[PRIVATE AND UNSUPPORTED] Creates a cloned instance of this continuation context, this clone is not a perfect copy but is intended to be a child continuation and all context data is setup for that.

This method is used by the instrumented bytecode that provides continuations support, it's not intended for general use. a clone of this continuation for use as a child continuation
since:
   1.6




createOrResetContext
public static ContinuationContext createOrResetContext(Object executingInstance)(Code)
[PRIVATE AND UNSUPPORTED] Creates a new continuation context or resets its expiration time.

This method is used by the instrumented bytecode that provides continuations support, it's not intended for general use. a new ContinuationContext , or the active one withits expiration time being reset
since:
   1.6




deactivate
public void deactivate()(Code)
Makes sure that this ContinuationContext is not the active one.
since:
   1.6



getActiveCallState
public CallState getActiveCallState()(Code)
Retrieves the call state that is active during this continuation. the active CallState ; or

null if no call state was active for this continuation




getActiveContext
public static ContinuationContext getActiveContext()(Code)
Retrieves the currently active continuation for the executing thread. the currently active continuation; or

null if no continuation is currently active
See Also:   ContinuationContext.getActiveContextId
since:
   1.6




getActiveContextId
public static String getActiveContextId()(Code)
Retrieves the identifier of the currently active continuation for the current thread. the identifier of the currently active continuation as a uniquestring; or

null if no continuation is currently active
See Also:   ContinuationContext.getActiveContext
since:
   1.6




getCallAnswer
public Object getCallAnswer()(Code)
Retrieves the answer that the call continuation stored in this context. the call continuation's answer; or

null if no answer was provided or the correspondingcontinuation wasn't a call continuation
since:
   1.6




getContinuable
public T getContinuable()(Code)
Returns the object instance in which this continuation was executing. this continuation's active object
since:
   1.6



getCreatedCallState
public CallState getCreatedCallState()(Code)
Retrieves this continuation's call continuation creation state.

If this returns a non-null value, you can detect from it that this was a call continuation. this continuation
See Also:   ContinuationContext.setCreatedCallState(CallState)
since:
   1.6




getId
public String getId()(Code)
Retrieves the continuation ID.

Note that this ID is not necessarily present in the manager and that trying to retrieve a continuation afterwards from its ID is never guaranteed to give a result. the unique ID of this continuation.
since:
   1.6




getLabel
public int getLabel()(Code)
[PRIVATE AND UNSUPPORTED] Retrieves the number of the bytecode label where the continuation has to resume execution from.

This method is used by the instrumented bytecode that provides continuations support, it's not intended for general use. the number of the resumed bytecode label; or

-1 if no label number has been set
since:
   1.6




getLastContext
public static ContinuationContext getLastContext()(Code)
Retrieves the last active continuation for the executing thread. the last active continuation; or

null if no continuation was active
since:
   1.6




getLocalStack
public ContinuationStack getLocalStack()(Code)
[PRIVATE AND UNSUPPORTED] Retrieves the local operand stack of this continuation.

This method is used by the instrumented bytecode that provides continuations support, it's not intended for general use. this continuation's local operand stack
since:
   1.6




getLocalVars
public ContinuationStack getLocalVars()(Code)
[PRIVATE AND UNSUPPORTED] Retrieves the local variable stack of this continuation.

This method is used by the instrumented bytecode that provides continuations support, it's not intended for general use. this continuation's local variable stack
since:
   1.6




getManager
public ContinuationManager getManager()(Code)
Retrieves the manager of this ContinuationContext . this continuation's manager instance
since:
   1.6



getParentContext
public ContinuationContext getParentContext()(Code)
Retrieves the parent ContinuationContext of this ContinuationContext instance. the parent ContinuationContext ; or

null if this ContinuationContext has noparent
See Also:   ContinuationContext.getParentContextId
since:
   1.6




getParentContextId
public String getParentContextId()(Code)
Retrieves the unique identifier of the parent continuation of this ContinuationContext instance. the parent's identifier as a unique string; or

null if this ContinuationContext has noparent
See Also:   ContinuationContext.getParentContext
since:
   1.6




getParentId
public String getParentId()(Code)
Retrieves the ID of this continuation's parent. the ID of this continuation's parent continuation; or

null if this continuation has no parent.
since:
   1.6




getStart
long getStart()(Code)



isPaused
public boolean isPaused()(Code)
Indicates whether this continuation is actually paused and can be resumed. true if the continuation is paused; or

false otherwise
since:
   1.6




registerContext
public void registerContext()(Code)
Registers this continuation in its manager, so that it can be retrieved later.
since:
   1.6



remove
public synchronized void remove()(Code)
Removes this ContinuationContext instance from its ContinuationManager .
since:
   1.6



removeContextTree
public void removeContextTree()(Code)
Removes the entire continuation tree that this ContinuationContext instance belongs to from its ContinuationManager .
since:
   1.6



resetId
synchronized void resetId()(Code)



setActiveCallState
public synchronized void setActiveCallState(CallState callState)(Code)
Sets the active call state for this continuation.

This mainly passes on the call state that was created during a call continuation. It allows quick retrieval of the active call state when an answer occurs.
Parameters:
  callState - the active call state
See Also:   ContinuationContext.setCreatedCallState(CallState)
See Also:   
since:
   1.6




setActiveContext
public static void setActiveContext(ContinuationContext context)(Code)
Replaces the active continuation context for the executing thread.
Parameters:
  context - the new ContinuationContext that will be active; or null if no continuation context should be active
See Also:   ContinuationContext.setActiveContext
since:
   1.6



setCallAnswer
public synchronized void setCallAnswer(Object answer)(Code)
Set the answer to a call continuation.
Parameters:
  answer - the object that will be the call continuation's answer; or null  if there was no answer
since:
   1.6



setCreatedCallState
public synchronized void setCreatedCallState(CallState createdCallState)(Code)
Sets the call continuation's state when a new call continuation is created.

This state initiates a call continuation and should be set when a new call happens, after that it should never be changed.
Parameters:
  createdCallState - this call continuation's creation state
See Also:   ContinuationContext.getCreatedCallState()
since:
   1.6




setLabel
public synchronized void setLabel(int label)(Code)
[PRIVATE AND UNSUPPORTED] Set the number of the bytecode label where the continuation has to resume execution from.

This method is used by the instrumented bytecode that provides continuations support, it's not intended for general use.
Parameters:
  label - the number of the resumed bytecode label
since:
   1.6




setManager
synchronized void setManager(ContinuationManager manager)(Code)



setParentId
public synchronized void setParentId(String id)(Code)
[PRIVATE AND UNSUPPORTED] Set the ID of this continuation's parent.

This method is used by the instrumented bytecode that provides continuations support, it's not intended for general use.
Parameters:
  id - the ID of this continuation's parent
See Also:   ContinuationContext.getParentId()
since:
   1.6




setPaused
public synchronized void setPaused(boolean paused)(Code)
[PRIVATE AND UNSUPPORTED] Sets whether the continuation if paused.

This method is used by the internals that provide continuations support, it's not intended for general use.
Parameters:
  paused - true if the continuation is paused; or

false otherwise
See Also:   ContinuationContext.isPaused()
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.