ActorThreadLocal

cc.otavia.core.cache.ActorThreadLocal
See theActorThreadLocal companion object
abstract class ActorThreadLocal[V <: AnyRef] extends ThreadLocal[V]

Attributes

Companion
object
Graph
Supertypes
class ThreadLocal[V]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

final override def get(): V

Returns the current value for the current thread

Returns the current value for the current thread

Attributes

Definition Classes
override def getIfExists: V | Null

Returns the current value for the current thread if it exists, null otherwise.

Returns the current value for the current thread if it exists, null otherwise.

Attributes

Definition Classes
override def isSet: Boolean

Returns true if and only if this thread-local variable is set.

Returns true if and only if this thread-local variable is set.

Attributes

Definition Classes
override def remove(): Unit

Sets the value to uninitialized for the specified thread local map. After this, any subsequent call to get() will trigger a new call to initialValue().

Sets the value to uninitialized for the specified thread local map. After this, any subsequent call to get() will trigger a new call to initialValue().

Attributes

Definition Classes
override def set(v: V): Unit

Set the value for the current thread.

Set the value for the current thread.

Attributes

Definition Classes

Inherited methods

def cancelTimer(): Unit

Cancel the local variable timer task.

Cancel the local variable timer task.

Attributes

Inherited from:
ThreadLocal
def handleTimeout(registerId: Long, resourceTimer: ResourceTimer): Unit

Handle TimeoutEvent for this TimeoutResource

Handle TimeoutEvent for this TimeoutResource

Value parameters

registerId

timer task register id in Timer.

resourceTimer

current time-out ResourceTimer

Attributes

Inherited from:
TimeoutResource (hidden)
protected def initialTimeoutTrigger: Option[TimeoutTrigger]

Initial TimeoutTrigger when initial a time-out resource like ThreadLocal

Initial TimeoutTrigger when initial a time-out resource like ThreadLocal

Attributes

Inherited from:
TimeoutResource (hidden)
final def isInitial: Boolean

Returns true if the thread local variable has been initial, otherwise false.

Returns true if the thread local variable has been initial, otherwise false.

Attributes

Inherited from:
ThreadLocal