private static class ExecutorProviders.ScheduledExecutorServiceSupplier extends java.lang.Object implements DisposableSupplier<java.util.concurrent.ScheduledExecutorService>
Modifier and Type | Field and Description |
---|---|
private ScheduledExecutorServiceProvider |
executorProvider |
Modifier | Constructor and Description |
---|---|
private |
ScheduledExecutorServiceSupplier(ScheduledExecutorServiceProvider executorServiceProvider) |
Modifier and Type | Method and Description |
---|---|
void |
dispose(java.util.concurrent.ScheduledExecutorService instance)
This method will dispose the provided object created by this
Supplier . |
java.util.concurrent.ScheduledExecutorService |
get() |
private final ScheduledExecutorServiceProvider executorProvider
private ScheduledExecutorServiceSupplier(ScheduledExecutorServiceProvider executorServiceProvider)
public java.util.concurrent.ScheduledExecutorService get()
get
in interface java.util.function.Supplier<java.util.concurrent.ScheduledExecutorService>
public void dispose(java.util.concurrent.ScheduledExecutorService instance)
DisposableSupplier
Supplier
.dispose
in interface DisposableSupplier<java.util.concurrent.ScheduledExecutorService>
instance
- the instance to be disposed.