ObjectPoolThreadLocal

cc.otavia.core.cache.AbstractThreadIsolatedObjectPool.ObjectPoolThreadLocal

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override 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

Definition Classes
TimeoutResource

Inherited methods

def cancelTimer(): Unit

Cancel the local variable timer task.

Cancel the local variable timer task.

Attributes

Inherited from:
ThreadLocal
final override def get(): SingleThreadPoolableHolder[T]

Returns the current value for the current thread

Returns the current value for the current thread

Attributes

Definition Classes
Inherited from:
ActorThreadLocal
override def getIfExists: SingleThreadPoolableHolder[T] | 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
Inherited from:
ActorThreadLocal
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
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
Inherited from:
ActorThreadLocal
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
Inherited from:
ActorThreadLocal
override def set(v: SingleThreadPoolableHolder[T]): Unit

Set the value for the current thread.

Set the value for the current thread.

Attributes

Definition Classes
Inherited from:
ActorThreadLocal

Concrete fields