Class ThreadLocalSelector<T>

java.lang.Object
org.wildfly.common.selector.Selector<T>
org.wildfly.common.selector.ThreadLocalSelector<T>

@Deprecated public final class ThreadLocalSelector<T> extends Selector<T>
Deprecated.
Use Contextual instead.
A thread local selector implementation.
Author:
David M. Lloyd
  • Constructor Details

    • ThreadLocalSelector

      public ThreadLocalSelector(ThreadLocal<? extends T> threadLocal)
      Deprecated.
      Construct a new instance.
      Parameters:
      threadLocal - the thread-local to use to store the selector's value
  • Method Details

    • get

      public T get()
      Deprecated.
      Description copied from class: Selector
      Get the currently relevant object, or null if there is none.
      Specified by:
      get in class Selector<T>
      Returns:
      the currently relevant object