public class LifoThreadPoolExecutor2Test extends Object
| Constructor and Description |
|---|
LifoThreadPoolExecutor2Test() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertPoolThreadDynamics(ExecutorService executor) |
static int |
consume(Collection<Future<?>> futures) |
void |
testJdkExec()
this is to confirm JDK behavior.
|
void |
testLifoExecSQ() |
static void |
testMaxParallel(ExecutorService executor,
int maxParallel,
long time,
TimeUnit unit) |
public void testLifoExecSQ()
throws InterruptedException,
IOException,
ExecutionException
public void testJdkExec()
throws InterruptedException,
IOException,
ExecutionException
public static void assertPoolThreadDynamics(ExecutorService executor) throws InterruptedException, IOException, ExecutionException
public static void testMaxParallel(ExecutorService executor, int maxParallel, long time, TimeUnit unit) throws InterruptedException
InterruptedExceptionpublic static int consume(Collection<Future<?>> futures) throws InterruptedException
InterruptedExceptionCopyright © 2021 SPF4J. All rights reserved.