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 ExecutorServiceProvider
executorProvider
-
Constructor Summary
Constructors Modifier Constructor Description private
ExecutorServiceSupplier(ExecutorServiceProvider executorServiceProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose(java.util.concurrent.ExecutorService instance)
This method will dispose the provided object created by thisSupplier
.java.util.concurrent.ExecutorService
get()
-
-
-
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:
get
in interfacejava.util.function.Supplier<java.util.concurrent.ExecutorService>
-
dispose
public void dispose(java.util.concurrent.ExecutorService instance)
Description copied from interface:DisposableSupplier
This method will dispose the provided object created by thisSupplier
.- Specified by:
dispose
in interfaceDisposableSupplier<java.util.concurrent.ExecutorService>
- Parameters:
instance
- the instance to be disposed.
-
-