public final class ExpensiveTestObject extends Object implements Closeable
Constructor and Description |
---|
ExpensiveTestObject(long maxIdleMillis,
int nrUsesToFailAfter,
long minOperationMillis,
long maxOperationMillis) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
doStuff() |
static boolean |
isFAILALL() |
static void |
setFailAll(boolean failAll) |
void |
testObject() |
String |
toString() |
public ExpensiveTestObject(long maxIdleMillis, int nrUsesToFailAfter, long minOperationMillis, long maxOperationMillis)
public static boolean isFAILALL()
public static void setFailAll(boolean failAll)
public void doStuff() throws IOException
IOException
public void testObject() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2021 SPF4J. All rights reserved.