public interface Initializable
TaskManager for construction and
initialization
An initializable instance can have external parameters supplied by the DDL. If an initializable needs to have
parameters passed in it is done through a public void initialize method. Only valid column types are allowed
as initialize parameters with two exceptions. The first one being that the first argument may be an instance of
TaskHelper, but this is optional. The other exception is that the last parameter can be either
String[] or Object[]. If the last parameter is an array then it will be treated as a var args
parameter.
Example initialize methods:
public void initialize(int interval, String timeUnit) public void initialize(TaskHelper helper, int interval, String timeUnit) public void initialize(int interval, String timeUnit, String procedureName, Object... procedureParameters) public void initialize(TaskHelper helper, int interval, String timeUnit, String procedureName, Object... procedureParameters)
Optionally an implementation can implement a validateParameters method which will be invoked during the DDL
validation phase. All parameters must match exactly the type of parameters passed to the initialize method of the
Scheduler implementation. The return of validateParameters must be a String which is null if
no error is detected otherwise an appropriate error message should be returned.
| Modifier and Type | Method and Description |
|---|---|
default java.util.Collection<java.lang.String> |
getDependencies()
If this method is implemented then the task will only be restarted when it or any classes marked as a dependency
are modified.
|
default java.util.Collection<java.lang.String> getDependencies()
Default return is null
Collection of classesNames which this instance depends upon.