Class SchedulerProvider
java.lang.Object
org.mariadb.jdbc.client.util.SchedulerProvider
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose()Shut down the shared timeout scheduler, if any, cancelling pending timeout tasks.static ScheduledThreadPoolExecutorstatic ScheduledThreadPoolExecutorDeprecated.
-
Method Details
-
getTimeoutScheduler
-
getTimeoutScheduler
Deprecated.usegetTimeoutScheduler(); the scheduler is guarded by its own lockGet 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.
-
getTimeoutScheduler(); the scheduler is guarded by its own lock