Aracılığıyla paylaş


InheritableThreadLocal.ChildValue(Object) Method

Definition

Computes the child's initial value for this inheritable thread-local variable as a function of the parent's value at the time the child thread is created.

[Android.Runtime.Register("childValue", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetChildValue_Ljava_lang_Object_Handler")]
protected virtual Java.Lang.Object? ChildValue (Java.Lang.Object? parentValue);
[<Android.Runtime.Register("childValue", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetChildValue_Ljava_lang_Object_Handler")>]
abstract member ChildValue : Java.Lang.Object -> Java.Lang.Object
override this.ChildValue : Java.Lang.Object -> Java.Lang.Object

Parameters

parentValue
Object

the parent thread's value

Returns

the child thread's initial value

Attributes

Remarks

Computes the child's initial value for this inheritable thread-local variable as a function of the parent's value at the time the child thread is created. This method is called from within the parent thread before the child is started.

This method merely returns its input argument, and should be overridden if a different behavior is desired.

Java documentation for java.lang.InheritableThreadLocal.childValue(T).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to