Class 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 class  ChangesetUpdater.Worker  
    • Field Summary

      Fields 
      Modifier and Type Field 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  
    • 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 running
      static void start()
      Starts the changeset updater task if not already started
      static void stop()
      Stops the changeset updater task if started
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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
    • 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