object ErrorStrategy extends ErrorStrategy
The ErrorStrategy companion object is the starting point to define an ErrorStrategy, and therefore is defined as an empty strategy (no timeout and no retry).
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ErrorStrategy
- ErrorStrategy
- AnyRef
- Any
- Hide All
- Show All
Visibility
- 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: ErrorStrategy
Alias for the ErrorStrategy companion object.
Alias for the ErrorStrategy companion object. Can be used for clarity, to mark when you actually want no retry and no timeout.
- def apply[R, A](z: => ZIO[R, DbException, A])(implicit trace: Trace): ZIO[R, DbException, A]
How this ErrorStrategy transforms a DB operation.
How this ErrorStrategy transforms a DB operation.
- Definition Classes
- ErrorStrategy → ErrorStrategy
- 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.
Adds a retry to the current ErrorStrategy.
- Definition Classes
- ErrorStrategy
- def retryCountExponential(count: Int, delay: zio.Duration, factor: Double = 2.0, maxDelay: zio.Duration = Duration.Infinity)(implicit trace: Trace): ErrorStrategy
- Definition Classes
- ErrorStrategy
- def retryCountFixed(count: Int, delay: zio.Duration)(implicit trace: Trace): ErrorStrategy
- Definition Classes
- ErrorStrategy
- def retryForeverExponential(delay: zio.Duration, factor: Double = 2.0, maxDelay: zio.Duration = Duration.Infinity)(implicit trace: Trace): ErrorStrategy
- Definition Classes
- ErrorStrategy
- def retryForeverFixed(delay: zio.Duration)(implicit trace: Trace): ErrorStrategy
- Definition Classes
- 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.
- Definition Classes
- ErrorStrategy
- 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