public static class TestDriver.Builder
extends java.lang.Object
| Constructor and Description |
|---|
TestDriver.Builder() |
| Modifier and Type | Method and Description |
|---|---|
TestDriver |
build() |
TestDriver.Builder |
withCallback(com.google.common.base.Function<TestDriver,java.lang.Void> callback) |
TestDriver.Builder |
withCallsPerSecondSupplier(com.google.common.base.Supplier<java.lang.Integer> callsPerSecond) |
TestDriver.Builder |
withFutures(long timeout,
java.util.concurrent.TimeUnit units) |
TestDriver.Builder |
withIterationCount(long iterationCount) |
TestDriver.Builder |
withRecurringEvent(long delay,
java.util.concurrent.TimeUnit units,
com.google.common.base.Function<TestDriver,java.lang.Void> event) |
TestDriver.Builder |
withThreadCount(int nThreads) |
public TestDriver.Builder withThreadCount(int nThreads)
public TestDriver.Builder withCallsPerSecondSupplier(com.google.common.base.Supplier<java.lang.Integer> callsPerSecond)
public TestDriver.Builder withCallback(com.google.common.base.Function<TestDriver,java.lang.Void> callback)
public TestDriver.Builder withIterationCount(long iterationCount)
public TestDriver.Builder withFutures(long timeout, java.util.concurrent.TimeUnit units)
public TestDriver.Builder withRecurringEvent(long delay, java.util.concurrent.TimeUnit units, com.google.common.base.Function<TestDriver,java.lang.Void> event)
public TestDriver build()