Interface RunContextPropagator.CapturedContext

Enclosing interface:
RunContextPropagator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Experimental @FunctionalInterface public static interface RunContextPropagator.CapturedContext
Thread-local state captured by RunContextPropagator.capture().
  • Method Summary

    Modifier and Type
    Method
    Description
    wrap(Runnable runnable)
    Wrap runnable so the captured state is re-installed around it when executed on another thread.
  • Method Details

    • wrap

      Runnable wrap(Runnable runnable)
      Wrap runnable so the captured state is re-installed around it when executed on another thread.