class InheritableThreadLocal[T <: AnyRef] extends ThreadLocal[T]
- Alphabetic
- By Inheritance
- InheritableThreadLocal
- ThreadLocal
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new InheritableThreadLocal()
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def childValue(parentValue: T): T
Computes the initial value of this thread-local variable for the child thread given the parent thread's value.
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.
- parentValue
the value of the variable in the parent thread.
- returns
the initial value of the variable for the child thread.
- Attributes
- protected
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def get(): T
Returns the value of this variable for the current thread.
Returns the value of this variable for the current thread. If an entry doesn't yet exist for this variable on this thread, this method will create an entry, populating the value with the result of initialValue.
- Definition Classes
- ThreadLocal
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def initialValue(): T
Provides the initial value of this variable for the current thread.
Provides the initial value of this variable for the current thread. The default implementation returns
null
.- Attributes
- protected
- Definition Classes
- ThreadLocal
- def initializeValues(current: Thread): Values
- Attributes
- protected[lang]
- Definition Classes
- InheritableThreadLocal → ThreadLocal
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def remove(): Unit
Removes the entry for this variable in the current thread.
Removes the entry for this variable in the current thread. If this call is followed by a get before a set, get will call initialValue and create a new entry with the resulting value.
- Definition Classes
- ThreadLocal
- def set(value: T): Unit
Sets the value of this variable for the current thread.
Sets the value of this variable for the current thread. If set to null, the value will be set to null and the underlying entry will still be present.
- Definition Classes
- ThreadLocal
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def values(current: Thread): Values
Gets Values instance for this thread and variable type.
Gets Values instance for this thread and variable type.
- Attributes
- protected[lang]
- Definition Classes
- InheritableThreadLocal → ThreadLocal
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: scala.Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: scala.Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()