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