Object/Class

com.vladkopanev.zio.saga

Saga

Related Docs: class Saga | package saga

Permalink

object Saga

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Saga
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class Compensable[-R, +E, +A] extends AnyVal

    Permalink

    Extension methods for IO requests.

  2. type Compensator[-R, +E] = ZIO[R, E, Unit]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit def IOtoCompensable[E, A](io: IO[E, A]): Compensable[Any, E, A]

    Permalink
  5. implicit def RIOtoCompensable[R, A](rio: RIO[R, A]): Compensable[R, Throwable, A]

    Permalink
  6. implicit def TaskToCompensable[A](task: Task[A]): Compensable[Any, Throwable, A]

    Permalink
  7. implicit def UIOtoCompensable[A](uio: UIO[A]): Compensable[Any, Nothing, A]

    Permalink
  8. implicit def ZIOtoCompensable[R, E, A](zio: ZIO[R, E, A]): Compensable[R, E, A]

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def collectAllPar[R, E, A](sagas: Saga[R, E, A]*): Saga[R, E, List[A]]

    Permalink

    Runs all Sagas in iterable in parallel, and collect the results.

  12. def collectAllPar[R, E, A](sagas: Iterable[Saga[R, E, A]]): Saga[R, E, List[A]]

    Permalink

    Runs all Sagas in iterable in parallel and collects the results.

  13. def compensate[R, E, A](action: ZIO[R, E, A], compensation: (Either[E, A]) ⇒ Compensator[R, E]): Saga[R, E, A]

    Permalink

    Constructs new Saga from action and compensation function that will be applied the result of this request.

  14. def compensate[R, E, A](request: ZIO[R, E, A], compensator: Compensator[R, E]): Saga[R, E, A]

    Permalink

    Constructs new Saga from action and compensating action.

  15. def compensateIfFail[R, E, A](action: ZIO[R, E, A], compensation: (E) ⇒ Compensator[R, E]): Saga[R, E, A]

    Permalink

    Constructs new Saga from action and compensation function that will be applied only to failed result of this request.

    Constructs new Saga from action and compensation function that will be applied only to failed result of this request. If given action succeeds associated compensating action would not be executed during the compensation phase.

  16. def compensateIfSuccess[R, E, A](action: ZIO[R, E, A], compensation: (A) ⇒ Compensator[R, E]): Saga[R, E, A]

    Permalink

    Constructs new Saga from action and compensation function that will be applied only to successful result of this request.

    Constructs new Saga from action and compensation function that will be applied only to successful result of this request. If given action fails associated compensating action would not be executed during the compensation phase.

  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def fail[R, E](error: E): Saga[R, E, Nothing]

    Permalink

    Constructs Saga without compensation that fails with an error.

  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def foreachPar[R, E, A, B](as: Iterable[A])(fn: (A) ⇒ Saga[R, E, B]): Saga[R, E, List[B]]

    Permalink

    Constructs a Saga that applies the function f to each element of the Iterable[A] in parallel, and returns the results in a new List[B].

  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. def noCompensate[R, E, A](request: ZIO[R, E, A]): Saga[R, E, A]

    Permalink

    Constructs new no-op Saga that will do nothing on error.

  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def retryableCompensate[R, SR, E, A](request: ZIO[R, E, A], compensator: Compensator[R, E], schedule: Schedule[SR, E, Any]): Saga[R with SR with Clock, E, A]

    Permalink

    Constructs new Saga from action, compensating action and a scheduling policy for retrying compensation.

  30. def succeed[R, A](value: A): Saga[R, Nothing, A]

    Permalink

    Constructs Saga without compensation that succeeds with a strict value.

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped