final case class PersistentExecutor(execEnv: ExecutionEnvironment, durableLog: DurableLog, kvStore: KeyValueStore, persistentState: PersistentState, operationExecutor: OperationExecutor, workflows: TMap[FlowId, Promise[Nothing, RuntimeState]], gcQueue: Queue[GarbageCollectionCommand], flowScope: Scope) extends ZFlowExecutor with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PersistentExecutor
  2. Serializable
  3. Product
  4. Equals
  5. ZFlowExecutor
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PersistentExecutor(execEnv: ExecutionEnvironment, durableLog: DurableLog, kvStore: KeyValueStore, persistentState: PersistentState, operationExecutor: OperationExecutor, workflows: TMap[FlowId, Promise[Nothing, RuntimeState]], gcQueue: Queue[GarbageCollectionCommand], flowScope: Scope)

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. 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.

    Definition Classes
    PersistentExecutorZFlowExecutor
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def delete(id: FlowId): IO[ExecutorError, Unit]

    Delete the persisted state and result of a completed workflow

    Delete the persisted state and result of a completed workflow

    Definition Classes
    PersistentExecutorZFlowExecutor
  8. val durableLog: DurableLog
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. val execEnv: ExecutionEnvironment
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. val flowScope: Scope
  13. def forceGarbageCollection(): ZIO[Any, Nothing, Unit]

    Force a GC run manually

    Force a GC run manually

    Definition Classes
    PersistentExecutorZFlowExecutor
  14. val gcQueue: Queue[GarbageCollectionCommand]
  15. def getAll: ZStream[Any, ExecutorError, (FlowId, FlowStatus)]

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

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

    Definition Classes
    PersistentExecutorZFlowExecutor
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. 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

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

    Definition Classes
    PersistentExecutorZFlowExecutor
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val kvStore: KeyValueStore
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. val operationExecutor: OperationExecutor
  24. 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.

    Definition Classes
    PersistentExecutorZFlowExecutor
  25. val persistentState: PersistentState
  26. 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.

    Definition Classes
    PersistentExecutorZFlowExecutor
  27. def productElementNames: Iterator[String]
    Definition Classes
    Product
  28. 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.

    Definition Classes
    PersistentExecutorZFlowExecutor
  29. 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.

    Definition Classes
    PersistentExecutorZFlowExecutor
  30. 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.

    Definition Classes
    PersistentExecutorZFlowExecutor
  31. 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.

    Definition Classes
    PersistentExecutorZFlowExecutor
  32. 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

    Definition Classes
    PersistentExecutorZFlowExecutor
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. val workflows: TMap[FlowId, Promise[Nothing, RuntimeState]]

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ZFlowExecutor

Inherited from AnyRef

Inherited from Any

Ungrouped