Top Description Constructors Methods
ch.qos.logback.classic.util

public Class CopyOnInheritThreadLocal

extends InheritableThreadLocal<HashMap<String, String>>
Class Inheritance
Imports
java.util.HashMap

This class extends InheritableThreadLocal so that children threads get a copy of the parent's hashmap.
Author
Ceki Gülcü

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected HashMap<String, String>
childValue(HashMap<String, String>
the parent thread's value
parentValue
)

Overrides java.lang.InheritableThreadLocal.childValue.

Child threads should get a copy of the parent's hashmap.

Constructor Detail

CopyOnInheritThreadLocalback to summary
public CopyOnInheritThreadLocal()

Method Detail

childValueback to summary
protected HashMap<String, String> childValue(HashMap<String, String> parentValue)

Overrides java.lang.InheritableThreadLocal.childValue.

Child threads should get a copy of the parent's hashmap.

Parameters
parentValue:HashMap<String, String>

Doc from java.lang.InheritableThreadLocal.childValue.

the parent thread's value

Returns:HashMap<String, String>

Doc from java.lang.InheritableThreadLocal.childValue.

the child thread's initial value

Annotations
@Override