Packages

trait ZFlowExecutor extends AnyRef

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZFlowExecutor
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def abort(id: FlowId): ZIO[Any, ExecutorError, Unit]

    Aborts a running flow.

    Aborts a running flow. If the flow has been already finished, it has no effect.

  2. abstract def delete(id: FlowId): ZIO[Any, ExecutorError, Unit]

    Delete the persisted state and result of a completed workflow

  3. abstract def forceGarbageCollection(): ZIO[Any, Nothing, Unit]

    Force a GC run manually

  4. abstract def getAll: ZStream[Any, ExecutorError, (FlowId, FlowStatus)]

    Lists all the known flows, no matter if they are still running or already finished

  5. abstract def getVariable(id: FlowId, name: RemoteVariableName): ZIO[Any, ExecutorError, Option[DynamicValue]]

    Gets the latest value of a remote variable belonging to the top level of a running flow

  6. abstract def pause(id: FlowId): ZIO[Any, ExecutorError, Unit]

    Pause a running flow.

    Pause a running flow. If the flow has been already finished or is already paused, it has no effect.

  7. abstract def poll(id: FlowId): ZIO[Any, ExecutorError, Option[Either[Either[ExecutorError, DynamicValue], DynamicValue]]]

    Poll currently running and complete workflows.

    Poll currently running and complete workflows.

    If the workflow with the provided id is completed, it will be returned.

  8. abstract def restartAll(): ZIO[Any, ExecutorError, Unit]

    Restart all known persisted running flows after recreating an executor.

    Restart all known persisted running flows after recreating an executor.

    Executors with no support for persistence should do nothing.

  9. abstract def resume(id: FlowId): ZIO[Any, ExecutorError, Unit]

    Resumes a paused flow.

    Resumes a paused flow. If the flow has been already finished or is already running, it has no effect.

  10. abstract def run[E, A](id: FlowId, flow: ZFlow[Any, E, A])(implicit arg0: Schema[E], arg1: Schema[A]): IO[E, A]

    Submits a flow to be executed, and waits for it to complete.

    Submits a flow to be executed, and waits for it to complete.

    If the executor is already running a flow with the given ID, that flow's result will be awaited.

  11. abstract def setVariable(id: FlowId, name: RemoteVariableName, value: DynamicValue): ZIO[Any, ExecutorError, Unit]

    Changes the value of a remote variable belonging to the top level of a flow.

    Changes the value of a remote variable belonging to the top level of a flow. It is the caller's responsibility to ensure that the dynamic value has the correct type.

  12. abstract def start[E, A](id: FlowId, flow: ZFlow[Any, E, A]): ZIO[Any, ExecutorError, DurablePromise[Either[ExecutorError, DynamicValue], FlowResult]]

    Submits a flow to be executed and returns a durable promise that will complete when the flow completes.

    Submits a flow to be executed and returns a durable promise that will complete when the flow completes.

    If the executor is already running a flow with the given ID, the existing flow's durable promise will be returned

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped