Interface ThreadContextReference<C>

Type Parameters:
C - the context type
All Superinterfaces:
BiConsumer<Thread,C>, Consumer<C>, ContextReference<C>, Function<Thread,C>, Supplier<C>
All Known Implementing Classes:
ContextClassLoaderReference

public interface ThreadContextReference<C> extends ContextReference<C>, Function<Thread,C>, BiConsumer<Thread,C>
Reference that can be associated with an arbitrary thread.
Author:
Paul Ferraro
  • Method Details

    • accept

      default void accept(C context)
      Specified by:
      accept in interface Consumer<C>
    • get

      default C get()
      Specified by:
      get in interface Supplier<C>