@Component(value="cuba_SchedulingCoordinator") public class DbBasedCoordinator extends java.lang.Object implements Coordinator
Coordinator interface, performing synchronization of singleton schedulers on the main
database.
This implementation should not be used if the database is overloaded.
Coordinator.ContextNAME| Constructor and Description |
|---|
DbBasedCoordinator() |
| Modifier and Type | Method and Description |
|---|---|
Coordinator.Context |
begin() |
void |
end(Coordinator.Context context) |
long |
getLastFinished(ScheduledTask task) |
boolean |
isLastExecutionFinished(ScheduledTask task,
long now) |
public Coordinator.Context begin()
begin in interface Coordinatorpublic void end(Coordinator.Context context)
end in interface Coordinatorpublic boolean isLastExecutionFinished(ScheduledTask task, long now)
isLastExecutionFinished in interface Coordinatorpublic long getLastFinished(ScheduledTask task)
getLastFinished in interface Coordinator