Uses of Class
org.openforis.concurrency.Worker
-
-
Uses of Worker in org.openforis.concurrency
Subclasses of Worker in org.openforis.concurrency Modifier and Type Class Description classJobSynchronously executes a series of Tasks in order.classTaskA unit of work in the system.Methods in org.openforis.concurrency with type parameters of type Worker Modifier and Type Method Description protected <T extends Worker>
TJob. addTask(Class<T> type)Creates and adds a task of the specified type.protected <T extends Worker>
voidJob. addTask(T task)Throws IllegalStateException if invoked after run() is calledprotected <C extends Collection<? extends Worker>>
voidJob. addTasks(C tasks)protected <T extends Worker>
TSimpleJobManager. createInstance(Class<T> type)protected <T extends Worker>
TJob. createTask(Class<T> type)<T extends Worker>
TJobManager. createWorker(Class<T> type)<T extends Worker>
TSimpleJobManager. createWorker(Class<T> type)Methods in org.openforis.concurrency that return Worker Modifier and Type Method Description WorkerJob. getCurrentTask()WorkerWorkerStatusChangeEvent. getSource()protected WorkerJob. nextTask()Methods in org.openforis.concurrency that return types with arguments of type Worker Modifier and Type Method Description List<Worker>Job. getTasks()Methods in org.openforis.concurrency with parameters of type Worker Modifier and Type Method Description protected voidJob. initializeTask(Worker task)Called before task execution.protected voidJob. onTaskCompleted(Worker task)Called when the task ends its execution with the statusWorker.Status.COMPLETEDprotected voidJob. onTaskEnd(Worker task)Called when the task ends its execution.protected voidJob. onTaskFailed(Worker task)protected voidJob. runTask(Worker task)Constructors in org.openforis.concurrency with parameters of type Worker Constructor Description WorkerStatusChangeEvent(Worker source, Worker.Status from, Worker.Status to)
-