类 ExceptionHandler
java.lang.Object
org.apache.pulsar.common.util.ExceptionHandler
Util class to place some special handling of exceptions.
-
方法概要
修饰符和类型方法说明static voidhandleInterruptedException(Throwable throwable) If the throwable is InterruptedException, reset the thread interrupted flag.
-
方法详细资料
-
handleInterruptedException
If the throwable is InterruptedException, reset the thread interrupted flag. We can use it in catching block when we need catch the InterruptedException and reset the thread interrupted flag no matter whether the throwable being caught is InterruptedException.- 参数:
throwable- the throwable being caught
-