Class WrappedCallable<V>
- java.lang.Object
-
- org.apache.iotdb.commons.concurrent.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 forCallablelogging errors when uncaught exception is thrown.
-
-
Constructor Summary
Constructors Constructor Description WrappedCallable()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Vcall()abstract VcallMayThrow()static <V> java.util.concurrent.Callable<V>wrap(java.util.concurrent.Callable<V> callable)
-
-
-
Method Detail
-
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)
-
-