public interface ManagedObjectExecuteContext<F extends Enum<F>>
Context that the ManagedObject
is to execute within.
In invoking processes the following should be taken into account:
JobSequence
(process) will be instigated in a new
ProcessState
which for example will cause new ManagedObject
dependencies to be instantiated.ManagedObject
passed to the invocation will go through a full
life-cycle so be careful passing in an existing initialised
ManagedObject
. For example the AsynchronousListener
instance
will be overwritten which will likely cause live-lock as the
AsynchronousListener.notifyComplete()
will notify on the wrong
ManagedObjectContainer
.Modifier and Type | Method and Description |
---|---|
ProcessFuture |
invokeProcess(F key,
Object parameter,
ManagedObject managedObject,
long delay)
Instigates a
JobSequence . |
ProcessFuture |
invokeProcess(F key,
Object parameter,
ManagedObject managedObject,
long delay,
EscalationHandler escalationHandler)
Instigates a
JobSequence providing an EscalationHandler
to handle EscalationFlow from the JobSequence . |
ProcessFuture |
invokeProcess(int flowIndex,
Object parameter,
ManagedObject managedObject,
long delay)
Instigates a
JobSequence . |
ProcessFuture |
invokeProcess(int flowIndex,
Object parameter,
ManagedObject managedObject,
long delay,
EscalationHandler escalationHandler)
Instigates a
JobSequence providing an EscalationHandler
to handle EscalationFlow from the JobSequence . |
ProcessFuture invokeProcess(F key, Object parameter, ManagedObject managedObject, long delay)
JobSequence
.key
- Key identifying the JobSequence
to instigate.parameter
- Parameter to first Task
of the JobSequence
.managedObject
- ManagedObject
for the ProcessState
of the
JobSequence
.delay
- Delay in milliseconds before the JobSequence
is
invoked. A 0 or negative value invokes the JobSequence
immediately.ProcessFuture
.ManagedObjectExecuteContext
ProcessFuture invokeProcess(int flowIndex, Object parameter, ManagedObject managedObject, long delay)
JobSequence
.flowIndex
- Index identifying the JobSequence
to instigate.parameter
- Parameter that to the first Task
of the
JobSequence
.managedObject
- ManagedObject
for the ProcessState
of the
JobSequence
.delay
- Delay in milliseconds before the JobSequence
is
invoked. A 0 or negative value invokes the JobSequence
immediately.ProcessFuture
ManagedObjectExecuteContext
ProcessFuture invokeProcess(F key, Object parameter, ManagedObject managedObject, long delay, EscalationHandler escalationHandler)
Instigates a JobSequence
providing an EscalationHandler
to handle EscalationFlow
from the JobSequence
.
An example of using this would be a HTTP server socket that sends status
500 on EscalationFlow
from JobSequence
.
key
- Key identifying the JobSequence
to instigate.parameter
- Parameter to the first Task
of the JobSequence
.managedObject
- ManagedObject
for the ProcessState
of the
JobSequence
.delay
- Delay in milliseconds before the JobSequence
is
invoked. A 0 or negative value invokes the JobSequence
immediately.escalationHandler
- EscalationHandler
.ProcessFuture
.ManagedObjectExecuteContext
ProcessFuture invokeProcess(int flowIndex, Object parameter, ManagedObject managedObject, long delay, EscalationHandler escalationHandler)
Instigates a JobSequence
providing an EscalationHandler
to handle EscalationFlow
from the JobSequence
.
An example of using this would be a HTTP server socket that sends status
500 on EscalationFlow
from JobSequence
.
flowIndex
- Index identifying the JobSequence
to instigate.parameter
- Parameter to first Task
of the JobSequence
.managedObject
- ManagedObject
for the ProcessState
of the
JobSequence
.delay
- Delay in milliseconds before the JobSequence
is
invoked. A 0 or negative value invokes the JobSequence
immediately.escalationHandler
- EscalationHandler
.ProcessFuture
.ManagedObjectExecuteContext
Copyright © 2005–2016. All rights reserved.