SingleThreadPoolableHolder

cc.otavia.core.cache.SingleThreadPoolableHolder
final class SingleThreadPoolableHolder[T <: Poolable](val maxSize: Int) extends PoolableHolder[T]

Attributes

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

Members list

Value members

Concrete methods

def clean(keep: Int): Unit

Clear this PoolableHolder until there are remain keep's objects.

Clear this PoolableHolder until there are remain keep's objects.

Value parameters

keep

the number of object to remain.

Attributes

override def pop(): T | Null

Attributes

Definition Classes
override def push(poolable: T): Unit

Attributes

Definition Classes
override def size: Int

Attributes

Definition Classes

Concrete fields

val maxSize: Int