Documents for @litert/xxl-job-integration / JobRunner/Bean / XxlJobBeanHandlerRunner
Class: XxlJobBeanHandlerRunner
Defined in: src/lib/JobRunner/Bean.ts:52
The job runner that handles job execution using registered bean handlers.
Implements
Constructors
Constructor
new XxlJobBeanHandlerRunner():
XxlJobBeanHandlerRunner
Returns
XxlJobBeanHandlerRunner
Properties
type
readonlytype:EJobType=cL.EJobType.BEAN
Defined in: src/lib/JobRunner/Bean.ts:54
The type of the jobs that this runner can handle.
Implementation of
Methods
add()
add(
opts):void
Defined in: src/lib/JobRunner/Bean.ts:69
Parameters
opts
Returns
void
prepare()
prepare(
args):null|IRunnerPrepareResult
Defined in: src/lib/JobRunner/Bean.ts:58
Prepare to run the task with the given arguments.
Parameters
args
Returns
null | IRunnerPrepareResult
null if the task cannot be prepared, or an object containing settings for the task.
Implementation of
remove()
remove(
name):void
Defined in: src/lib/JobRunner/Bean.ts:83
Parameters
name
string
Returns
void
run()
run(
ctx):Promise<void>
Defined in: src/lib/JobRunner/Bean.ts:88
Run the task with the given context.
Parameters
ctx
The context of the task to run, which contains the task data and task information.
Returns
Promise<void>