|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.continuations.ContinuationConfigRuntime<ElementSupport>
com.uwyn.rife.engine.EngineContinuationConfigRuntime
public class EngineContinuationConfigRuntime
| Field Summary |
|---|
| Fields inherited from class com.uwyn.rife.continuations.ContinuationConfigRuntime |
|---|
DEFAULT_CONTINUATION_DURATION, DEFAULT_CONTINUATION_PURGE_FREQUENCY, DEFAULT_CONTINUATION_PURGE_SCALE |
| Method Summary | |
|---|---|
boolean |
cloneContinuations(ElementSupport executingContinuable)
Indicates whether a continuable should be cloned before resuming the execution. |
ElementSupport |
getAssociatedContinuableObject(Object executingInstance)
Retrieves the ContinuableObject that corresponds to the currently
executing object instance. |
long |
getContinuationDuration()
The duration, in milliseconds, by which a continuation stays valid. |
ContinuationManager |
getContinuationManager(ElementSupport executingContinuable)
Retrieves the manager that is responsible for the ContinuableObject that is currently executing. |
int |
getContinuationPurgeFrequency()
The frequency by which the continuations purging will run in the ContinuationManager. |
int |
getContinuationPurgeScale()
The scale that will be used to determine how often continuations purging will run in the ContinuationManager. |
| Methods inherited from class com.uwyn.rife.continuations.ContinuationConfigRuntime |
|---|
getActiveConfigRuntime, setActiveConfigRuntime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ElementSupport getAssociatedContinuableObject(Object executingInstance)
ContinuationConfigRuntimeContinuableObject that corresponds to the currently
executing object instance.
If you don't work with a seperate continuable support class
(see here)
and don't allow people to just implement a marker interface without having
to extend a base class, the associated continuable object is the same as
the executing instance.
However, if there is a separate continuable support class, you'll need to return the appropriate continuable object here.
getAssociatedContinuableObject in class ContinuationConfigRuntime<ElementSupport>executingInstance - the currently executing object instance
ContinuableObjectContinuationConfigInstrument.getContinuableSupportClassName()public ContinuationManager getContinuationManager(ElementSupport executingContinuable)
ContinuationConfigRuntimeContinuableObject that is currently executing.
getContinuationManager in class ContinuationConfigRuntime<ElementSupport>executingContinuable - the currently executing continuable
public boolean cloneContinuations(ElementSupport executingContinuable)
ContinuationConfigRuntime
cloneContinuations in class ContinuationConfigRuntime<ElementSupport>executingContinuable - the currently executing continuable
true is the continuation should be cloned; or
false otherwise
public long getContinuationDuration()
ContinuationConfigRuntimeWhen this period is exceeded, a continuation can not be retrieved anymore and it will be removed from the manager during the next purge.
getContinuationDuration in class ContinuationConfigRuntime<ElementSupport>public int getContinuationPurgeFrequency()
ContinuationConfigRuntimeContinuationManager.
This works together with the scale that is configured through
ContinuationConfigRuntime.getContinuationPurgeScale(). The frequency divided by the scale
makes how often the purging will happen. For instance, a frequency of 20
and a scale of 1000 means that purging will happen 1/50th of the time.
getContinuationPurgeFrequency in class ContinuationConfigRuntime<ElementSupport>ContinuationConfigRuntime.getContinuationPurgeScale()public int getContinuationPurgeScale()
ContinuationConfigRuntimeContinuationManager.
See ContinuationConfigRuntime.getContinuationPurgeScale() for more info.
getContinuationPurgeScale in class ContinuationConfigRuntime<ElementSupport>ContinuationConfigRuntime.getContinuationPurgeFrequency()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||