Poolable

cc.otavia.core.pool.Poolable
trait Poolable

An object which can be pooled.

Extends Nextable for intrusive linked-list storage inside PerThreadPool. The next pointer avoids wrapper allocation in the pool's free-list, and clean calls clearNext to detach the node when recycling.

Attributes

Graph
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

Members list

Value members

Abstract methods

protected def cleanInstance(): Unit

Clean the field of this instance.

Clean the field of this instance.

Attributes

def recycle(): Unit

Recycle this instance.

Recycle this instance.

Attributes

Concrete methods

final def clean(): Unit

Clean all fields of this instance.

Clean all fields of this instance.

Attributes

Inherited methods

def clearNext(): Unit

Attributes

Inherited from:
Nextable (hidden)
def next: Nextable | Null

Attributes

Inherited from:
Nextable (hidden)
def next_=(next: Nextable): Unit

Set the next object of this object.

Set the next object of this object.

Attributes

Inherited from:
Nextable (hidden)