class UnreliableTestConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
bytesReadBeforeException |
private boolean |
isFakeIOException |
private int |
maxNumErrors |
private int |
resetIntervalBeforeException |
Constructor and Description |
---|
UnreliableTestConfig() |
Modifier and Type | Method and Description |
---|---|
(package private) int |
getBytesReadBeforeException() |
(package private) int |
getMaxNumErrors() |
(package private) int |
getResetIntervalBeforeException() |
(package private) boolean |
isFakeIOException() |
(package private) UnreliableTestConfig |
withBytesReadBeforeException(int bytesReadBeforeException) |
(package private) UnreliableTestConfig |
withFakeIOException(boolean isFakeIOException) |
(package private) UnreliableTestConfig |
withMaxNumErrors(int maxNumErrors) |
(package private) UnreliableTestConfig |
withResetIntervalBeforeException(int resetIntervalBeforeException)
Used to control whether an exception would be thrown based on the reset
recurrence; not applicable if set to zero.
|
private int maxNumErrors
private int bytesReadBeforeException
private boolean isFakeIOException
private int resetIntervalBeforeException
int getMaxNumErrors()
int getBytesReadBeforeException()
boolean isFakeIOException()
int getResetIntervalBeforeException()
UnreliableTestConfig withMaxNumErrors(int maxNumErrors)
UnreliableTestConfig withBytesReadBeforeException(int bytesReadBeforeException)
UnreliableTestConfig withFakeIOException(boolean isFakeIOException)
UnreliableTestConfig withResetIntervalBeforeException(int resetIntervalBeforeException)