Class SafeRun


  • public class SafeRun
    extends java.lang.Object
    Static builders for SafeRunnables.
    • Constructor Summary

      Constructors 
      Constructor Description
      SafeRun()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.bookkeeper.util.SafeRunnable safeRun​(java.lang.Runnable runnable)  
      static org.apache.bookkeeper.util.SafeRunnable safeRun​(java.lang.Runnable runnable, java.util.function.Consumer<java.lang.Throwable> exceptionHandler)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SafeRun

        public SafeRun()
    • Method Detail

      • safeRun

        public static org.apache.bookkeeper.util.SafeRunnable safeRun​(java.lang.Runnable runnable)
      • safeRun

        public static org.apache.bookkeeper.util.SafeRunnable safeRun​(java.lang.Runnable runnable,
                                                                      java.util.function.Consumer<java.lang.Throwable> exceptionHandler)
        Parameters:
        runnable -
        exceptionHandler - handler that will be called when there are any exception
        Returns: