final case class ConnectionPoolLive(queue: TQueue[QueueItem], available: TRef[List[ResettableConnection]], config: ConnectionPoolConfig) extends ConnectionPool with Product with Serializable
A live concurrent connection pool.
Improvements to make:
- A connection may die. If so, it should be reacquired.
- Someone may try to use a connection forever. If so, we should take it away from them.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ConnectionPoolLive
- Serializable
- Product
- Equals
- ConnectionPool
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ConnectionPoolLive(queue: TQueue[QueueItem], available: TRef[List[ResettableConnection]], config: ConnectionPoolConfig)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val addFreshConnection: IO[IOException, ResettableConnection]
Adds a fresh connection to the connection pool.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val available: TRef[List[ResettableConnection]]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val close: IO[IOException, Any]
Closes the connection pool, terminating each connection in parallel.
- val config: ConnectionPoolConfig
- def connection: ZIO[Scope, Exception, Connection]
Retrieves a JDBC java.sql.Connection as a Exception, Connection] resource.
Retrieves a JDBC java.sql.Connection as a Exception, Connection] resource. The managed resource will safely acquire and release the connection, and may be interrupted or timed out if necessary.
- Definition Classes
- ConnectionPoolLive → ConnectionPool
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val initialize: IO[IOException, Unit]
Initializes the connection pool.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val queue: TQueue[QueueItem]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()