| Package | Description |
|---|---|
| org.apache.sshd.common.util.threads |
| Modifier and Type | Class and Description |
|---|---|
class |
NoCloseExecutor
Wraps an
ExecutorService as a CloseableExecutorService
and avoids calling its shutdown methods when the wrapper is shut down |
class |
SshThreadPoolExecutor |
| Modifier and Type | Method and Description |
|---|---|
static CloseableExecutorService |
ThreadUtils.newCachedThreadPoolIf(CloseableExecutorService executorService,
String poolName) |
static CloseableExecutorService |
ThreadUtils.newFixedThreadPoolIf(CloseableExecutorService executorService,
String poolName,
int nThreads) |
static CloseableExecutorService |
ThreadUtils.noClose(CloseableExecutorService executorService) |
static CloseableExecutorService |
ThreadUtils.protectExecutorServiceShutdown(CloseableExecutorService executorService,
boolean shutdownOnExit)
Wraps an
CloseableExecutorService in such a way as to "protect"
it for calls to the ExecutorService.shutdown() or
ExecutorService.shutdownNow(). |
Copyright © 2018–2019 The Apache Software Foundation. All rights reserved.