Package org.openstreetmap.josm.io
Class ChangesetUpdater
- java.lang.Object
-
- org.openstreetmap.josm.io.ChangesetUpdater
-
public final class ChangesetUpdater extends java.lang.Object
Checks periodically if open changesets have been closed on server side.- Since:
- 14326
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classChangesetUpdater.Worker
-
Field Summary
Fields Modifier and Type Field Description private static java.util.concurrent.ScheduledExecutorServiceEXECUTORstatic IntegerPropertyPROP_INTERVALProperty defining the update interval in minutesprivate static java.util.concurrent.ScheduledFuture<?>taskprivate static java.lang.RunnableWORKER
-
Constructor Summary
Constructors Modifier Constructor Description privateChangesetUpdater()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheck()Checks for open changesets that have been closed on server side, and update Changeset cache if needed.static booleanisRunning()Determines if the changeset updater is currently runningstatic voidstart()Starts the changeset updater task if not already startedstatic voidstop()Stops the changeset updater task if started
-
-
-
Field Detail
-
PROP_INTERVAL
public static final IntegerProperty PROP_INTERVAL
Property defining the update interval in minutes
-
EXECUTOR
private static final java.util.concurrent.ScheduledExecutorService EXECUTOR
-
WORKER
private static final java.lang.Runnable WORKER
-
task
private static volatile java.util.concurrent.ScheduledFuture<?> task
-
-
Constructor Detail
-
ChangesetUpdater
private ChangesetUpdater()
-
-
Method Detail
-
check
public static void check()
Checks for open changesets that have been closed on server side, and update Changeset cache if needed.
-
start
public static void start()
Starts the changeset updater task if not already started
-
stop
public static void stop()
Stops the changeset updater task if started
-
isRunning
public static boolean isRunning()
Determines if the changeset updater is currently running- Returns:
trueif the updater is running,falseotherwise
-
-