IT. Expert System.

Android Reference

InheritableThreadLocal


java.lang

Class InheritableThreadLocal<T>



  • public class InheritableThreadLocal<T>
    extends ThreadLocal<T>
    A thread-local variable whose value is passed from parent to child thread. By default, the value of an inheritable thread-local variable of a child thread is initialized with the value of the parent thread's variable at thread creation time. However, subclasses may override {code #childValue(Object)} to provide an arbitrary function for passing the value of a parent's thread-local variable to the child's thread-local variable.
    See Also:
    Thread, ThreadLocal
    • Constructor Detail

      • InheritableThreadLocal

        public InheritableThreadLocal()
        Creates a new inheritable thread-local variable.
    • Method Detail

      • childValue

        protected T childValue(T parentValue)
        Computes the initial value of this thread-local variable for the child thread given the parent thread's value. Called from the parent thread when creating a child thread. The default implementation returns the parent thread's value.
        Parameters:
        parentValue - the value of the variable in the parent thread.
        Returns:
        the initial value of the variable for the child thread.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 14331 / . Delta: 0.03842 с