public abstract class ClientTaskHandler extends Object implements TaskHandler
ClientTaskHandler
provides a method runOnClient(TaskTO)
that will be
executed for each client for a TaskTO
.
By default all active clients are used, however the behavior can be changed by overwriting
checkRunOnClient(ClientTO)
Constructor and Description |
---|
ClientTaskHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkRunOnClient(ClientTO client) |
protected boolean |
checkRunTask(TaskTO task)
Check if the task should actually be run.
|
void |
run(TaskTO task)
Executes the Task with the given properties.
|
protected abstract void |
runOnClient(TaskTO task)
Is called for each client
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRescheduleDate
protected boolean checkRunOnClient(ClientTO client)
client
- the client to checkprotected boolean checkRunTask(TaskTO task)
task
- the task to checkpublic final void run(TaskTO task) throws TaskHandlerException
run
in interface TaskHandler
task
- The task.TaskHandlerException
- Exception.Copyright © 2019 Communote team. All rights reserved.