Package org.openstreetmap.josm.io
Class ChangesetUpdater
- java.lang.Object
-
- org.openstreetmap.josm.io.ChangesetUpdater
-
public final class ChangesetUpdater extends 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 class
ChangesetUpdater.Worker
-
Field Summary
Fields Modifier and Type Field Description private static ScheduledExecutorService
EXECUTOR
static IntegerProperty
PROP_INTERVAL
Property defining the update interval in minutesprivate static ScheduledFuture<?>
task
private static Runnable
WORKER
-
Constructor Summary
Constructors Modifier Constructor Description private
ChangesetUpdater()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 runningstatic void
start()
Starts the changeset updater task if not already startedstatic void
stop()
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 ScheduledExecutorService EXECUTOR
-
task
private static volatile 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:
true
if the updater is running,false
otherwise
-
-