public class UserGroupSynchronizationTaskHandler extends Object implements TaskHandler
Modifier and Type | Field and Description |
---|---|
static Object |
LOCK
Lock which can be used to avoid multiple synchronization tasks running in parallel.
|
Constructor and Description |
---|
UserGroupSynchronizationTaskHandler() |
Modifier and Type | Method and Description |
---|---|
Date |
getRescheduleDate(Date now)
Return the time a task should run again.
|
void |
run(TaskTO task)
This is the main job.
|
public static final Object LOCK
public Date getRescheduleDate(Date now)
getRescheduleDate
in interface TaskHandler
now
- The date to use for any calculations.public void run(TaskTO task) throws TaskHandlerException
run
in interface TaskHandler
task
- Task with additional parameters.TaskHandlerException
- Exception.Copyright © 2019 Communote team. All rights reserved.