PartitionedAsyncObjectPool

class PartitionedAsyncObjectPool[T](factory: ObjectFactory[T], configuration: PoolConfiguration, numberOfPartitions: Int) extends AsyncObjectPool[T]
class Object
trait Matchable
class Any

Value members

Concrete methods

def availables: Iterable[T]
def close: Future[AsyncObjectPool[T]]
def giveBack(item: T): Future[AsyncObjectPool[T]]
def inUse: Iterable[T]
protected
def isClosed: Boolean
def queued: Iterable[Promise[T]]
def take: Future[T]

Inherited methods

def use[A](f: T => Future[A])(implicit executionContext: ExecutionContext): Future[A]

Retrieve and use an object from the pool for a single computation, returning it when the operation completes.

Retrieve and use an object from the pool for a single computation, returning it when the operation completes.

Value Params
f

function that uses the object

Returns

f wrapped with take and giveBack

Inherited from
AsyncObjectPool