Class SchedulerProvider


  • public final class SchedulerProvider
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static long IDLE_THREAD_TIMEOUT_SECONDS  
      private static java.lang.Object LOCK  
      private static java.util.concurrent.ScheduledThreadPoolExecutor timeoutScheduler  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SchedulerProvider()  
    • Field Detail

      • IDLE_THREAD_TIMEOUT_SECONDS

        static final long IDLE_THREAD_TIMEOUT_SECONDS
        See Also:
        Constant Field Values
      • LOCK

        private static final java.lang.Object LOCK
      • timeoutScheduler

        private static volatile java.util.concurrent.ScheduledThreadPoolExecutor timeoutScheduler
    • Constructor Detail

      • SchedulerProvider

        private SchedulerProvider()
    • Method Detail

      • getTimeoutScheduler

        public static java.util.concurrent.ScheduledThreadPoolExecutor getTimeoutScheduler()
      • getTimeoutScheduler

        @Deprecated
        public static java.util.concurrent.ScheduledThreadPoolExecutor getTimeoutScheduler​(ClosableLock lock)
        Deprecated.
        use getTimeoutScheduler(); the scheduler is guarded by its own lock
        Get the shared timeout scheduler.
        Parameters:
        lock - ignored, kept for source compatibility
        Returns:
        the shared timeout scheduler
      • close

        public static void close()
        Shut down the shared timeout scheduler, if any, cancelling pending timeout tasks. Intended for application shutdown or undeploy, after connections are closed. Safe to call several times; a later use of the driver recreates the scheduler.