Class ExecutorProviders.ExecutorServiceSupplier
- java.lang.Object
-
- org.glassfish.jersey.process.internal.ExecutorProviders.ExecutorServiceSupplier
-
- All Implemented Interfaces:
java.util.function.Supplier<java.util.concurrent.ExecutorService>,DisposableSupplier<java.util.concurrent.ExecutorService>
- Enclosing class:
- ExecutorProviders
private static class ExecutorProviders.ExecutorServiceSupplier extends java.lang.Object implements DisposableSupplier<java.util.concurrent.ExecutorService>
-
-
Field Summary
Fields Modifier and Type Field Description private ExecutorServiceProviderexecutorProvider
-
Constructor Summary
Constructors Modifier Constructor Description privateExecutorServiceSupplier(ExecutorServiceProvider executorServiceProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose(java.util.concurrent.ExecutorService instance)This method will dispose the provided object created by thisSupplier.java.util.concurrent.ExecutorServiceget()
-
-
-
Field Detail
-
executorProvider
private final ExecutorServiceProvider executorProvider
-
-
Constructor Detail
-
ExecutorServiceSupplier
private ExecutorServiceSupplier(ExecutorServiceProvider executorServiceProvider)
-
-
Method Detail
-
get
public java.util.concurrent.ExecutorService get()
- Specified by:
getin interfacejava.util.function.Supplier<java.util.concurrent.ExecutorService>
-
dispose
public void dispose(java.util.concurrent.ExecutorService instance)
Description copied from interface:DisposableSupplierThis method will dispose the provided object created by thisSupplier.- Specified by:
disposein interfaceDisposableSupplier<java.util.concurrent.ExecutorService>- Parameters:
instance- the instance to be disposed.
-
-