Class RunnableWrapper

  • All Implemented Interfaces:
    java.lang.Runnable

    public final class RunnableWrapper
    extends java.lang.Object
    implements java.lang.Runnable
    This is used to wrap lambda runnables 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
      RunnableWrapper​(java.lang.Runnable runnable)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      static java.lang.Runnable wrapIfNeeded​(java.lang.Runnable task)  
      • Methods inherited from class java.lang.Object

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

      • RunnableWrapper

        public RunnableWrapper​(java.lang.Runnable runnable)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • wrapIfNeeded

        public static java.lang.Runnable wrapIfNeeded​(java.lang.Runnable task)