Interface ManagedObjectServiceContext<F extends Enum<F>>
- All Known Implementing Classes:
ManagedObjectServiceContextImpl,SafeManagedObjectService
public interface ManagedObjectServiceContext<F extends Enum<F>>
Service context for the
ManagedObjectSource.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptioninvokeProcess(int flowIndex, Object parameter, ManagedObject managedObject, long delay, FlowCallback callback) Instigates aProcessState.invokeProcess(F key, Object parameter, ManagedObject managedObject, long delay, FlowCallback callback) Instigates aProcessState.
-
Method Details
-
invokeProcess
ProcessManager invokeProcess(F key, Object parameter, ManagedObject managedObject, long delay, FlowCallback callback) throws IllegalArgumentException Instigates aProcessState.- Parameters:
key- Key identifying theFlowto instigate.parameter- Parameter to firstManagedFunctionof theFlow.managedObject-ManagedObjectfor theProcessStateof theFlow.delay- Delay in milliseconds before theFlowis invoked. A0or negative value invokes theFlowimmediately.callback-FlowCallbackon completion of theFlow.- Returns:
ProcessManagerfor theProcessState.- Throws:
IllegalArgumentException- If- unknown
Flowkey - parameter is incorrect type
- no
ManagedObjectis supplied
- unknown
-
invokeProcess
ProcessManager invokeProcess(int flowIndex, Object parameter, ManagedObject managedObject, long delay, FlowCallback callback) throws IllegalArgumentException Instigates aProcessState.- Parameters:
flowIndex- Index identifying theFlowto instigate.parameter- Parameter that to the firstManagedFunctionof theFlow.managedObject-ManagedObjectfor theProcessStateof theFlow.delay- Delay in milliseconds before theFlowis invoked. A0or negative value invokes theFlowimmediately.callback-FlowCallbackon completion of theFlow.- Returns:
ProcessManagerfor theProcessState.- Throws:
IllegalArgumentException- If- unknown
Flowindex - parameter is incorrect type
- no
ManagedObjectis supplied
- unknown
-