AddWorkflowDsl

zio.temporal.worker.ZWorker$.AddWorkflowDsl
final class AddWorkflowDsl[I] extends AnyVal

Allows building workers

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def from[A <: I](f: => A)(implicit ctg: ClassTag[I]): UIO[ZWorker]

Configures a factory to use when an instance of a workflow implementation is created. The only valid use for this method is unit testing, specifically to instantiate mocks that implement child workflows. An example of mocking a child workflow:

Configures a factory to use when an instance of a workflow implementation is created. The only valid use for this method is unit testing, specifically to instantiate mocks that implement child workflows. An example of mocking a child workflow:

Attributes

A

workflow interface implementation

ctg

workflow interface class tag

f

should create a workflow implementation

See also:

Worker#addWorkflowImplementationFactory

def from(cls: Class[I], f: () => I): UIO[ZWorker]

Configures a factory to use when an instance of a workflow implementation is created. The only valid use for this method is unit testing, specifically to instantiate mocks that implement child workflows. An example of mocking a child workflow:

Configures a factory to use when an instance of a workflow implementation is created. The only valid use for this method is unit testing, specifically to instantiate mocks that implement child workflows. An example of mocking a child workflow:

Attributes

cls

workflow interface class

f

should create a workflow implementation

See also:

Worker#addWorkflowImplementationFactory

def fromClass(implicit ctg: ClassTag[I], isConcreteClass: IsConcreteClass[I], hasPublicNullaryConstructor: HasPublicNullaryConstructor[I]): UIO[ZWorker]

Registers workflow implementation classes with a worker. Can be called multiple times to add more types.

Registers workflow implementation classes with a worker. Can be called multiple times to add more types.

Attributes

ctg

workflow interface class tag

See also:

Worker#registerWorkflowImplementationTypes

def fromClass(cls: Class[I])(implicit isConcreteClass: IsConcreteClass[I], hasPublicNullaryConstructor: HasPublicNullaryConstructor[I]): UIO[ZWorker]

Registers workflow implementation classes with a worker. Can be called multiple times to add more types.

Registers workflow implementation classes with a worker. Can be called multiple times to add more types.

Attributes

cls

workflow interface class tag

See also:

Worker#registerWorkflowImplementationTypes