public final class ChangesetUpdater extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ChangesetUpdater.Worker |
Modifier and Type | Field and Description |
---|---|
private static java.util.concurrent.ScheduledExecutorService |
EXECUTOR |
static IntegerProperty |
PROP_INTERVAL
Property defining the update interval in minutes
|
private static java.util.concurrent.ScheduledFuture<?> |
task |
private static java.lang.Runnable |
WORKER |
Modifier | Constructor and Description |
---|---|
private |
ChangesetUpdater() |
Modifier and Type | Method and Description |
---|---|
static void |
check()
Checks for open changesets that have been closed on server side, and update Changeset cache if needed.
|
static boolean |
isRunning()
Determines if the changeset updater is currently running
|
static void |
start()
Starts the changeset updater task if not already started
|
static void |
stop()
Stops the changeset updater task if started
|
public static final IntegerProperty PROP_INTERVAL
private static final java.util.concurrent.ScheduledExecutorService EXECUTOR
private static final java.lang.Runnable WORKER
private static volatile java.util.concurrent.ScheduledFuture<?> task
private ChangesetUpdater()
public static void check()
public static void start()
public static void stop()
public static boolean isRunning()
true
if the updater is running, false
otherwise