Class WrappedCallable<V>

  • All Implemented Interfaces:
    java.util.concurrent.Callable<V>

    public abstract class WrappedCallable<V>
    extends java.lang.Object
    implements java.util.concurrent.Callable<V>
    A wrapper for Callable logging errors when uncaught exception is thrown.
    • Constructor Detail

      • WrappedCallable

        public WrappedCallable()
    • Method Detail

      • call

        public final V call()
        Specified by:
        call in interface java.util.concurrent.Callable<V>
      • callMayThrow

        public abstract V callMayThrow()
                                throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • wrap

        public static <V> java.util.concurrent.Callable<V> wrap​(java.util.concurrent.Callable<V> callable)