cc.otavia.core.cache

Members list

Type members

Classlikes

abstract class AbstractThreadIsolatedObjectPool[T <: Poolable] extends ObjectPool[T]

Attributes

Companion
object
Supertypes
class ObjectPool[T]
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class ObjectPool[T]
class Object
trait Matchable
class Any
abstract class ActorThreadLocal[V <: AnyRef] extends ThreadLocal[V]

Attributes

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

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class ActorThreadLocalBoxed[V] extends ThreadLocal[V]

Attributes

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

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class ObjectPool[T <: Poolable]

Light-weight object pool.

Light-weight object pool.

Type parameters

T

the type of the pooled object

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Poolable

An object which can be pooled

An object which can be pooled

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class FutureState[R]
class FuturesState[R]
class AbstractPromise[V]
class Stack
class AskStack[A]
class BatchAskStack[A]
class BatchNoticeStack[N]
class ChannelStack[T]
class NoticeStack[N]
Show all
trait PoolableHolder[T <: Poolable]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
abstract class ResourceTimer(val parent: TimeoutResource)

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
final class SingleThreadPoolableHolder[T <: Poolable](val maxSize: Int) extends PoolableHolder[T]

Attributes

Supertypes
trait PoolableHolder[T]
class Object
trait Matchable
class Any

Attributes

Supertypes
class ObjectPool[T]
class Object
trait Matchable
class Any
abstract class ThreadLocal[V]

A special variant of ThreadLocal that yields higher access performance when accessed from a ActorThread.

A special variant of ThreadLocal that yields higher access performance when accessed from a ActorThread.

Internally, a ThreadLocal uses a constant index in an array, instead of using hash code and hash table, to look for a variable. Although seemingly very subtle, it yields slight performance advantage over using a hash table, and it is useful when accessed frequently.

To take advantage of this thread-local variable, your thread must be a ActorThread. By default, all actors and channel are running by ActorThread.

Type parameters

V

the type of the thread-local variable

Attributes

See also

java.lang.ThreadLocal

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ThreadLocal

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
final class ThreadLocalTimer(val parent: ThreadLocal[_]) extends ResourceTimer

Attributes

Supertypes
class Object
trait Matchable
class Any