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 Summary

    Modifier and Type
    Method
    Description
    default void
    accept(C context)
     
    default C
    get()
     

    Methods inherited from interface java.util.function.BiConsumer

    accept, andThen

    Methods inherited from interface java.util.function.Consumer

    andThen

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose
  • 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>