SynchronizedPool

open class SynchronizedPool<T : Any>(maxPoolSize: Int) : Pools.SimplePool<T> (source)

Synchronized pool of objects.

Parameters

maxPoolSize

The maximum pool size

T

The pooled type.

Constructors

Link copied to clipboard
constructor(maxPoolSize: Int)

Functions

Link copied to clipboard
open override fun acquire(): T?
Link copied to clipboard
open override fun release(instance: T): Boolean

Release an instance to the pool.