public class MultiThreadedStressTester
extends java.lang.Object
Constructor | Description |
---|---|
MultiThreadedStressTester(int iterationCount) |
|
MultiThreadedStressTester(int threadCount,
int iterationCount) |
|
MultiThreadedStressTester(int threadCount,
int iterationCount,
java.util.concurrent.ThreadFactory threadFactory) |
Modifier and Type | Method | Description |
---|---|---|
void |
blitz(long timeoutMs,
java.lang.Runnable action) |
|
boolean |
errorOccurred() |
|
void |
shutdown() |
|
MultiThreadedStressTester |
stress(java.lang.Runnable action) |
|
MultiThreadedStressTester |
stress(java.lang.Runnable action,
boolean stopIfError) |
|
int |
totalActionCount() |
public MultiThreadedStressTester(int iterationCount)
public MultiThreadedStressTester(int threadCount, int iterationCount)
public MultiThreadedStressTester(int threadCount, int iterationCount, java.util.concurrent.ThreadFactory threadFactory)
public int totalActionCount()
public MultiThreadedStressTester stress(java.lang.Runnable action) throws java.lang.InterruptedException
java.lang.InterruptedException
public MultiThreadedStressTester stress(java.lang.Runnable action, boolean stopIfError) throws java.lang.InterruptedException
java.lang.InterruptedException
public void blitz(long timeoutMs, java.lang.Runnable action) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
public boolean errorOccurred()
public void shutdown()
Copyright © 2017–2018 Ocraft Project. All rights reserved.