Package org.openstreetmap.josm.io
Class ChangesetUpdater
java.lang.Object
org.openstreetmap.josm.io.ChangesetUpdater
Checks periodically if open changesets have been closed on server side.
- Since:
- 14326
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ScheduledExecutorServicestatic final IntegerPropertyProperty defining the update interval in minutesprivate static ScheduledFuture<?>private static final Runnable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheck()Checks for open changesets that have been closed on server side, and update Changeset cache if needed.static booleanDetermines 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 Details
-
PROP_INTERVAL
Property defining the update interval in minutes -
EXECUTOR
-
WORKER
-
task
-
-
Constructor Details
-
ChangesetUpdater
private ChangesetUpdater()
-
-
Method Details
-
check
Checks for open changesets that have been closed on server side, and update Changeset cache if needed. -
start
Starts the changeset updater task if not already started -
stop
Stops the changeset updater task if started -
isRunning
Determines if the changeset updater is currently running- Returns:
trueif the updater is running,falseotherwise
-