Class 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 Detail

      • ThreadLocalSelector

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

      • 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