Class IterableThreadLocal<T>

  • Type Parameters:
    T - Type of the thread local value
    All Implemented Interfaces:
    Iterable<Map.Entry<Thread,​T>>

    public class IterableThreadLocal<T>
    extends ThreadLocal<T>
    implements Iterable<Map.Entry<Thread,​T>>
    A ThreadLocal that allows to iterate over all available Thread-value pairs. Note that this is not strongly consistent and may differ from actual current state in moment of change.
    Author:
    Jan Bernitt