Class SchedulerProvider

java.lang.Object
org.mariadb.jdbc.client.util.SchedulerProvider

public final class SchedulerProvider extends Object
  • Method Details

    • getTimeoutScheduler

      public static ScheduledThreadPoolExecutor getTimeoutScheduler()
    • getTimeoutScheduler

      @Deprecated public static 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.