public class Blitzer extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_THREAD_COUNT
The default number of threads to run concurrently.
|
Constructor and Description |
---|
Blitzer(int actionCount) |
Blitzer(int actionCount,
ExecutorService executorService) |
Blitzer(int actionCount,
int threadCount) |
Blitzer(int actionCount,
int threadCount,
ThreadFactory threadFactory) |
Modifier and Type | Method and Description |
---|---|
void |
blitz(long timeoutMs,
Runnable action) |
void |
blitz(Runnable action) |
void |
shutdown() |
int |
totalActionCount() |
public static final int DEFAULT_THREAD_COUNT
public Blitzer(int actionCount)
public Blitzer(int actionCount, int threadCount)
public Blitzer(int actionCount, int threadCount, ThreadFactory threadFactory)
public Blitzer(int actionCount, ExecutorService executorService)
public int totalActionCount()
public void blitz(Runnable action) throws InterruptedException
InterruptedException
public void blitz(long timeoutMs, Runnable action) throws InterruptedException, TimeoutException
InterruptedException
TimeoutException
public void shutdown()
Copyright © 2003–2021 jMock. All rights reserved.