ResPoolGroup

zhttp.clients.ResPoolGroup$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case class RPD[R](createRes: () => R, closeRes: R => Unit, name: String)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class RPDM[R](createRes: () => ZIO[Any, Exception, R], closeRes: R => ZIO[Any, Exception, Unit], name: String)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
trait Service[R]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Types

type ResPoolGroup[R] = Service[R]
type ResRec[R] = ResRec[R]

Value members

Concrete methods

def acquire[R](pool_id: String)(implicit tagged: Tag[R]): ZIO[Service[R], Throwable, R]
def make[R](timeToLiveMs: Int, rpd: RPD[R]*)(implicit tagged: Tag[R]): ZIO[Clock & Console & System & Random, Nothing, Service[R]]
def makeM[R](timeToLiveMs: Int, rpdm: RPDM[R]*)(implicit tagged: Tag[R]): ZLayer[Any, Nothing, Service[R]]
def release[R](pool_id: String, r: R)(implicit tagged: Tag[R]): ZIO[Service[R], Throwable, Unit]