case class ErrorStrategies(openConnection: ErrorStrategy, setAutoCommit: ErrorStrategy, commitConnection: ErrorStrategy, rollbackConnection: ErrorStrategy, closeConnection: ErrorStrategy) extends ErrorStrategiesRef with Product with Serializable
Contains one ErrorStrategy for each DB operation. Carries a few methods to apply changes to all methods.
- openConnection
Note that
openConnectionis a special case. Timeouts should not be handled in ZIO over this method, as that could lead to connection leaks. Therefore, thetimeoutmethod specifically ignoreopenConnection.
- Alphabetic
- By Inheritance
- ErrorStrategies
- Serializable
- Product
- Equals
- ErrorStrategiesRef
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ErrorStrategies(openConnection: ErrorStrategy, setAutoCommit: ErrorStrategy, commitConnection: ErrorStrategy, rollbackConnection: ErrorStrategy, closeConnection: ErrorStrategy)
- openConnection
Note that
openConnectionis a special case. Timeouts should not be handled in ZIO over this method, as that could lead to connection leaks. Therefore, thetimeoutmethod specifically ignoreopenConnection.
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val closeConnection: ErrorStrategy
- val commitConnection: ErrorStrategy
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val openConnection: ErrorStrategy
- def orElse(es: ErrorStrategiesRef): ErrorStrategies
- Definition Classes
- ErrorStrategies → ErrorStrategiesRef
- val orElseDefault: ErrorStrategies
- Definition Classes
- ErrorStrategies → ErrorStrategiesRef
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def ref: ErrorStrategiesRef
- Definition Classes
- ErrorStrategiesRef
- def retry(schedule: Schedule[Any, Any, Any]): ErrorStrategies
- def retryCountExponential(count: Int, delay: zio.Duration, factor: Double = 2.0, maxDelay: zio.Duration = Duration.Infinity)(implicit trace: Trace): ErrorStrategies
- def retryCountFixed(count: Int, delay: zio.Duration)(implicit trace: Trace): ErrorStrategies
- def retryForeverExponential(delay: zio.Duration, factor: Double = 2.0, maxDelay: zio.Duration = Duration.Infinity)(implicit trace: Trace): ErrorStrategies
- def retryForeverFixed(delay: zio.Duration)(implicit trace: Trace): ErrorStrategies
- val rollbackConnection: ErrorStrategy
- val setAutoCommit: ErrorStrategy
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def timeout(d: zio.Duration): ErrorStrategies
Adds a timeout on all individual operations (commit, rollback, etc.).
Adds a timeout on all individual operations (commit, rollback, etc.).
No timeout will be applied to openConnection, as this would cause leaking connections. If for some reason you want a timeout on openConnection, you need to set the ErrorStrategy for openConnection manually.
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated