public abstract static class JobScheduler.ErrorHandler extends Object
each job execution
.Constructor and Description |
---|
ErrorHandler() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
handle(ExecutionContext context,
IOException exception)
Invoked when failed to execute the job in
JobScheduler.execute(PhaseMonitor, ExecutionContext, List, ErrorHandler) . |
public abstract boolean handle(ExecutionContext context, IOException exception)
JobScheduler.execute(PhaseMonitor, ExecutionContext, List, ErrorHandler)
.
Each scheduler
MAY continue each job execution
if this returns false
(except blocked by the failed job),
and the scheduler MUST raise an exception finally.
Otherwise if this returns false
, the scheduler SHOULD terminate executing jobs
and raise an exception immediatelly.context
- current execution contextexception
- the occurred exceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.