Class MockFaultHandler
java.lang.Object
org.apache.kafka.common.test.MockFaultHandler
- All Implemented Interfaces:
org.apache.kafka.server.fault.FaultHandler
This is a fault handler suitable for use in JUnit tests. It will store the result of the first
call to handleFault that was made.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.server.fault.FaultHandlerExceptionhandleFault(String failureMessage, Throwable cause) voidvoidsetIgnore(boolean ignore) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.server.fault.FaultHandler
handleFault
-
Constructor Details
-
MockFaultHandler
-
-
Method Details
-
handleFault
- Specified by:
handleFaultin interfaceorg.apache.kafka.server.fault.FaultHandler
-
maybeRethrowFirstException
public void maybeRethrowFirstException() -
firstException
public org.apache.kafka.server.fault.FaultHandlerException firstException() -
setIgnore
public void setIgnore(boolean ignore)
-