Class SchedulerProvider
java.lang.Object
org.mariadb.jdbc.client.util.SchedulerProvider
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final longprivate static final Objectprivate static ScheduledThreadPoolExecutor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose()Shut down the shared timeout scheduler, if any, cancelling pending timeout tasks.static ScheduledThreadPoolExecutorstatic ScheduledThreadPoolExecutorDeprecated.
-
Field Details
-
IDLE_THREAD_TIMEOUT_SECONDS
static final long IDLE_THREAD_TIMEOUT_SECONDS- See Also:
-
LOCK
-
timeoutScheduler
-
-
Constructor Details
-
SchedulerProvider
private SchedulerProvider()
-
-
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