Package rife.engine
Class EngineContinuationConfigInstrument
java.lang.Object
rife.engine.EngineContinuationConfigInstrument
- All Implemented Interfaces:
ContinuationConfigInstrument
public class EngineContinuationConfigInstrument
extends Object
implements ContinuationConfigInstrument
Configures the continuations system for the web engine.
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the interface that will indicate that a class should be instrumented for continuations functionalities, for instanceContinuableObject.class.getName()
.The class name of the support class that contains dummy implementations of the continuation methods that are configured below, for instanceContinuableSupport.class.getName()
.The ASM method descriptor of the entry method, this includes the arguments and the return types.The name of the entry method that will be invoked when a new instance of a continuable class is created and its execution is started, for instance"execute"
.The name of the method that will trigger a pause continuation, for instance"pause"
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface rife.continuations.ContinuationConfigInstrument
getAnswerMethodName, getCallMethodDescriptor, getCallMethodName, getCallMethodReturnTypeName, getStepBackMethodName
-
Constructor Details
-
EngineContinuationConfigInstrument
public EngineContinuationConfigInstrument()
-
-
Method Details
-
getContinuableMarkerInterfaceName
Description copied from interface:ContinuationConfigInstrument
The name of the interface that will indicate that a class should be instrumented for continuations functionalities, for instanceContinuableObject.class.getName()
.- Specified by:
getContinuableMarkerInterfaceName
in interfaceContinuationConfigInstrument
- Returns:
- the name of the marker interface
-
getContinuableSupportClassName
Description copied from interface:ContinuationConfigInstrument
The class name of the support class that contains dummy implementations of the continuation methods that are configured below, for instanceContinuableSupport.class.getName()
.If you implement these methods in your continuable classes or extend these classes from a common base class with those methods that are then called locally, this configuration can return
null
since it will not be used. A class name only needs to be provided if your continuable classes only implement the marker interface, and you call the continuation methods on an instance of this support inside your continuations logic.- Specified by:
getContinuableSupportClassName
in interfaceContinuationConfigInstrument
- Returns:
- the name of the continuable support class; or
null
if such a support class isn't used
-
getEntryMethodName
Description copied from interface:ContinuationConfigInstrument
The name of the entry method that will be invoked when a new instance of a continuable class is created and its execution is started, for instance"execute"
.- Specified by:
getEntryMethodName
in interfaceContinuationConfigInstrument
- Returns:
- the name of the entry method
-
getEntryMethodDescriptor
Description copied from interface:ContinuationConfigInstrument
The ASM method descriptor of the entry method, this includes the arguments and the return types. If there's no arguments nor return types, this is"()V"
.- Specified by:
getEntryMethodDescriptor
in interfaceContinuationConfigInstrument
- Returns:
- the ASM method descriptor for the entry method
-
getPauseMethodName
Description copied from interface:ContinuationConfigInstrument
The name of the method that will trigger a pause continuation, for instance"pause"
.This method should have a
void
return type and take no arguments.- Specified by:
getPauseMethodName
in interfaceContinuationConfigInstrument
- Returns:
- the name of the pause method or
null
if you don't use pause continuations
-