object ErrorStrategies extends ErrorStrategies
The ErrorStrategies companion object is the starting point to define an ErrorStrategies, and therefore is defined as a set of empty strategies (no timeout and no retry).
- Alphabetic
- By Inheritance
- ErrorStrategies
- ErrorStrategies
- Serializable
- Product
- Equals
- ErrorStrategiesRef
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 Nothing: ErrorStrategies
Alias for the ErrorStrategies companion object.
Alias for the ErrorStrategies companion object. Can be used for clarity, to mark when you actually want no retry and no timeout.
- val Parent: ErrorStrategiesParent.type
No concrete strategies.
No concrete strategies. Uses the parent module's strategies.
- 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
- Definition Classes
- ErrorStrategies
- val commitConnection: ErrorStrategy
- Definition Classes
- ErrorStrategies
- 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
- Definition Classes
- ErrorStrategies
- 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
- Definition Classes
- ErrorStrategies
- def retryCountExponential(count: Int, delay: zio.Duration, factor: Double = 2.0, maxDelay: zio.Duration = Duration.Infinity)(implicit trace: Trace): ErrorStrategies
- Definition Classes
- ErrorStrategies
- def retryCountFixed(count: Int, delay: zio.Duration)(implicit trace: Trace): ErrorStrategies
- Definition Classes
- ErrorStrategies
- def retryForeverExponential(delay: zio.Duration, factor: Double = 2.0, maxDelay: zio.Duration = Duration.Infinity)(implicit trace: Trace): ErrorStrategies
- Definition Classes
- ErrorStrategies
- def retryForeverFixed(delay: zio.Duration)(implicit trace: Trace): ErrorStrategies
- Definition Classes
- ErrorStrategies
- val rollbackConnection: ErrorStrategy
- Definition Classes
- ErrorStrategies
- val setAutoCommit: ErrorStrategy
- Definition Classes
- ErrorStrategies
- 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.
- Definition Classes
- ErrorStrategies
- 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])
- object Implicits
Implicit ErrorStrategies, to be imported when needed.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated