ThreadLocalRdContext

abstract class ThreadLocalRdContext<T : Any>(    key: String,     heavy: Boolean,     serializer: IMarshaller<T>) : RdContext<T>

Describes an RdContext which uses ThreadLocal as internal storage for values

Constructors

Link copied to clipboard
fun <T : Any> ThreadLocalRdContext(    key: String,     heavy: Boolean,     serializer: IMarshaller<T>)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun updateValue(newValue: T?): AutoCloseable

Changes current value to newValue and returns a cookie which should restore old value on closing

Properties

Link copied to clipboard
val heavy: Boolean
Link copied to clipboard
val key: String
Link copied to clipboard
val serializer: IMarshaller<T>
Link copied to clipboard
open override val value: T?

The current value for this context implemented as thread-local storage

Link copied to clipboard
open val valueForPerContextEntity: T?

Value which is used as a key inside per-context entities like RdPerContextMap