Packages

c

zio.sql

ConnectionPoolLive

final case class ConnectionPoolLive(queue: TQueue[TPromise[Nothing, ResettableConnection]], available: TRef[List[ResettableConnection]], config: ConnectionPoolConfig, clock: Clock) 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.
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConnectionPoolLive
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ConnectionPool
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConnectionPoolLive(queue: TQueue[TPromise[Nothing, ResettableConnection]], available: TRef[List[ResettableConnection]], config: ConnectionPoolConfig, clock: Clock)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val addFreshConnection: IO[IOException, ResettableConnection]

    Adds a fresh connection to the connection pool.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val available: TRef[List[ResettableConnection]]
  7. val clock: Clock
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. val close: IO[IOException, Any]

    Closes the connection pool, terminating each connection in parallel.

  10. val config: ConnectionPoolConfig
  11. def connection: Managed[Exception, Connection]

    Retrieves a JDBC java.sql.Connection as a zio.Managed resource.

    Retrieves a JDBC java.sql.Connection as a zio.Managed resource. The managed resource will safely acquire and release the connection, and may be interrupted or timed out if necessary.

    Definition Classes
    ConnectionPoolLiveConnectionPool
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. val initialize: IO[IOException, Unit]

    Initializes the connection pool.

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. val queue: TQueue[TPromise[Nothing, ResettableConnection]]
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ConnectionPool

Inherited from AnyRef

Inherited from Any

Ungrouped