public class Blitzer extends Object
Modifier and Type | Field | Description |
---|---|---|
static int |
DEFAULT_THREAD_COUNT |
The default number of threads to run concurrently.
|
Constructor | Description |
---|---|
Blitzer(int actionCount) |
|
Blitzer(int actionCount,
int threadCount) |
|
Blitzer(int actionCount,
int threadCount,
ThreadFactory threadFactory) |
|
Blitzer(int actionCount,
ExecutorService executorService) |
Modifier and Type | Method | 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–2018 jMock. All rights reserved.