Class CallableWrapper

  • All Implemented Interfaces:
    java.util.concurrent.Callable

    public final class CallableWrapper
    extends java.lang.Object
    implements java.util.concurrent.Callable
    This is used to wrap lambda callables since currently we cannot instrument them

    FIXME: We should remove this once https://github.com/raphw/byte-buddy/issues/558 is fixed

    • Constructor Summary

      Constructors 
      Constructor Description
      CallableWrapper​(java.util.concurrent.Callable callable)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object call()  
      static java.util.concurrent.Callable<?> wrapIfNeeded​(java.util.concurrent.Callable<?> task)  
      • Methods inherited from class java.lang.Object

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

      • CallableWrapper

        public CallableWrapper​(java.util.concurrent.Callable callable)
    • Method Detail

      • call

        public java.lang.Object call()
                              throws java.lang.Exception
        Specified by:
        call in interface java.util.concurrent.Callable
        Throws:
        java.lang.Exception
      • wrapIfNeeded

        public static java.util.concurrent.Callable<?> wrapIfNeeded​(java.util.concurrent.Callable<?> task)