Package io.zeebe.test.util.io
Class RepeatedlyFailingOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- io.zeebe.test.util.io.RepeatedlyFailingOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class RepeatedlyFailingOutputStream extends OutputStream
-
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_FAILURE_FREQUENCY
-
Constructor Summary
Constructors Constructor Description RepeatedlyFailingOutputStream(OutputStream underlyingOutputStream)RepeatedlyFailingOutputStream(OutputStream underlyingOutputStream, long failureFrequency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStreamgetUnderlyingOutputStream()voidwrite(int b)-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write
-
-
-
-
Field Detail
-
DEFAULT_FAILURE_FREQUENCY
public static final long DEFAULT_FAILURE_FREQUENCY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RepeatedlyFailingOutputStream
public RepeatedlyFailingOutputStream(OutputStream underlyingOutputStream)
-
RepeatedlyFailingOutputStream
public RepeatedlyFailingOutputStream(OutputStream underlyingOutputStream, long failureFrequency)
-
-
Method Detail
-
getUnderlyingOutputStream
public OutputStream getUnderlyingOutputStream()
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
-