public interface ManagedObjectSourceContext<F extends Enum<F>> extends SourceContext
ManagedObjectSource
.Modifier and Type | Method and Description |
---|---|
void |
addStartupTask(String workName,
String taskName)
|
<W extends Work> |
addWork(String workName,
WorkFactory<W> workFactory)
|
<W extends Work> |
getRecycleWork(WorkFactory<W> workFactory)
Invoking this method during the
ManagedObjectSource.init(ManagedObjectSourceContext) will create
recycle functionality for the ManagedObject to be returned to a
ManagedObjectPool . |
void |
linkProcess(F key,
String workName,
String taskName)
|
void |
linkProcess(int flowIndex,
String workName,
String taskName)
|
getClassLoader, getOptionalResource, getResource, isLoadingType, loadClass, loadOptionalClass
getProperties, getProperty, getProperty, getPropertyNames
void linkProcess(F key, String workName, String taskName)
Links in a JobSequence
by specifying the first Task
of
the JobSequence
.
The Task
must be registered by this ManagedObjectSource
.
key
- Key identifying JobSequence
being invoked by the
ManagedObjectSource
.workName
- Name of the Work
that the Task
resides on.taskName
- Name of Task
.void linkProcess(int flowIndex, String workName, String taskName)
Links in a JobSequence
by specifying the first Task
of
the JobSequence
.
The Task
must be registered by this ManagedObjectSource
.
flowIndex
- Index identifying the JobSequence
.workName
- Name of the Work
that the Task
resides on.taskName
- Name of Task
.<W extends Work> ManagedObjectWorkBuilder<W> getRecycleWork(WorkFactory<W> workFactory)
Invoking this method during the
ManagedObjectSource.init(ManagedObjectSourceContext)
will create
recycle functionality for the ManagedObject
to be returned to a
ManagedObjectPool
.
The initial Task
will be used as the recycle starting point for
this ManagedObject
.
W
- Work
type.workFactory
- WorkFactory
to create the recycle Work
.WorkBuilder
to recycle this ManagedObject
.<W extends Work> ManagedObjectWorkBuilder<W> addWork(String workName, WorkFactory<W> workFactory)
W
- Work
type.workName
- Name of the Work
.workFactory
- WorkFactory
to create the Work
.ManagedObjectWorkBuilder
.Copyright © 2005–2016. All rights reserved.