trait ErrorStrategy extends AnyRef
An ErrorStrategy defines how to handle one of the DB operations (openConnection, commit, etc.) It is typically created starting from the ErrorStrategy object, then applying timeout and retry.
- Self Type
- ErrorStrategy
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- ErrorStrategy
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def apply[R, A](z: => ZIO[R, DbException, A])(implicit trace: Trace): ZIO[R, DbException, A]
How this ErrorStrategy transforms a DB operation.
Concrete 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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- 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()
- def retry(schedule: Schedule[Any, Any, Any]): ErrorStrategy
Adds a retry to the current ErrorStrategy.
- def retryCountExponential(count: Int, delay: zio.Duration, factor: Double = 2.0, maxDelay: zio.Duration = Duration.Infinity)(implicit trace: Trace): ErrorStrategy
- def retryCountFixed(count: Int, delay: zio.Duration)(implicit trace: Trace): ErrorStrategy
- def retryForeverExponential(delay: zio.Duration, factor: Double = 2.0, maxDelay: zio.Duration = Duration.Infinity)(implicit trace: Trace): ErrorStrategy
- def retryForeverFixed(delay: zio.Duration)(implicit trace: Trace): ErrorStrategy
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def timeout(d: zio.Duration): ErrorStrategy
Adds a timeout to the current ErrorStrategy.
Adds a timeout to the current ErrorStrategy. Note that if a retry has already been defined, the timeout is applied after the retry.
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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