public interface Coordinator
Scheduling
to coordinate work in distributed environment. Class Scheduling
itself
doesn't contain any logic to provide synchronization of singleton schedulers, delegating this task to the
Coordinator
.Modifier and Type | Interface and Description |
---|---|
static interface |
Coordinator.Context |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
Coordinator.Context |
begin() |
void |
end(Coordinator.Context context) |
long |
getLastFinished(ScheduledTask task) |
boolean |
isLastExecutionFinished(ScheduledTask task,
long now) |
static final java.lang.String NAME
Coordinator.Context begin()
void end(Coordinator.Context context)
boolean isLastExecutionFinished(ScheduledTask task, long now)
long getLastFinished(ScheduledTask task)