public class SimpleExecutorServiceProvider extends Object implements ExecutorServiceProvider
| Constructor and Description |
|---|
SimpleExecutorServiceProvider(ExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
getExecutor(ThreadFactory threadFactory)
Returns an executor to use for parallel statement execution
|
void |
release(ExecutorService service)
Shuts down the specified executor.
|
public SimpleExecutorServiceProvider(ExecutorService executor)
public ExecutorService getExecutor(ThreadFactory threadFactory)
getExecutor in interface ExecutorServiceProviderthreadFactory - factory for creating threadsExecutorServiceProvider.getExecutor(java.util.concurrent.ThreadFactory)public void release(ExecutorService service)
release in interface ExecutorServiceProviderservice - an executor serviceExecutorServiceProvider.release(java.util.concurrent.ExecutorService)Copyright © 2004–2014 Paul Ferraro. All rights reserved.