public class TestConfig
extends java.lang.Object
| Constructor and Description |
|---|
TestConfig() |
TestConfig(java.time.Duration testDuration) |
TestConfig(java.time.Duration testDuration,
int maxConcurrency) |
TestConfig(java.time.Duration testDuration,
int maxConcurrency,
boolean enableLease) |
TestConfig(java.time.Duration testDuration,
int maxConcurrency,
java.util.function.IntSupplier serverCapacitySupplier,
int leaseTtlMillis) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxConcurrency() |
java.time.Duration |
getTestDuration() |
io.reactivesocket.client.ReactiveSocketClient |
newClientForServer(java.net.SocketAddress server) |
protected boolean |
nextServerBad(int serverCount) |
io.reactivesocket.lease.LeaseEnforcingSocket |
nextServerHandler(int serverCount) |
io.reactivex.Flowable<java.lang.Long> |
serverListChangeTicks() |
public TestConfig()
public TestConfig(java.time.Duration testDuration,
int maxConcurrency)
public TestConfig(java.time.Duration testDuration)
public TestConfig(java.time.Duration testDuration,
int maxConcurrency,
boolean enableLease)
public TestConfig(java.time.Duration testDuration,
int maxConcurrency,
java.util.function.IntSupplier serverCapacitySupplier,
int leaseTtlMillis)
public final java.time.Duration getTestDuration()
public final int getMaxConcurrency()
public io.reactivex.Flowable<java.lang.Long> serverListChangeTicks()
public final io.reactivesocket.client.ReactiveSocketClient newClientForServer(java.net.SocketAddress server)
public final io.reactivesocket.lease.LeaseEnforcingSocket nextServerHandler(int serverCount)
protected boolean nextServerBad(int serverCount)