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
InterruptedException
public static int consume(Collection<Future<?>> futures) throws InterruptedException
InterruptedException
Copyright © 2021 SPF4J. All rights reserved.