public class MultithreadRunner extends Object
| コンストラクタと説明 |
|---|
MultithreadRunner(int threadCount,
int retryCount,
StatusReporter reporter) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected Runnable |
createRunnable(String name,
SinglethreadRunnable runnable,
CountDownLatch startSignal,
CountDownLatch endSignal,
List<Exception> exceptions) |
protected void |
done(long dt) |
protected void |
fault(long dt) |
protected void |
fault(long dt,
Exception e) |
long |
getDeltaTimeMillis() |
Collection<Exception> |
getExceptions() |
int |
getRetryCount() |
int |
getRetryWaitMinMillis() |
int |
getRetryWaitRangeMillis() |
int |
getThreadCount() |
protected int |
getTotalCount() |
void |
runAndWait(MultithreadRunnable runnable) |
void |
runAndWait(SinglethreadRunnableFactory factory) |
void |
setRetryWaitMinMillis(int retryWaitMinMillis) |
void |
setRetryWaitRangeMillis(int retryWaitRangeMillis) |
public MultithreadRunner(int threadCount,
int retryCount,
StatusReporter reporter)
public int getThreadCount()
public int getRetryCount()
public long getDeltaTimeMillis()
public void runAndWait(MultithreadRunnable runnable) throws InterruptedException
public void runAndWait(SinglethreadRunnableFactory factory) throws InterruptedException
public int getRetryWaitMinMillis()
public void setRetryWaitMinMillis(int retryWaitMinMillis)
public int getRetryWaitRangeMillis()
public void setRetryWaitRangeMillis(int retryWaitRangeMillis)
public Collection<Exception> getExceptions()
protected int getTotalCount()
protected Runnable createRunnable(String name, SinglethreadRunnable runnable, CountDownLatch startSignal, CountDownLatch endSignal, List<Exception> exceptions)
protected void done(long dt)
protected void fault(long dt)
protected void fault(long dt,
Exception e)
Copyright © 2016. All rights reserved.