AddWorkflowAspectDsl

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

Allows building workers using ZIOAspect

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def from[Workflow <: I](f: => Workflow)(implicit ctg: ClassTag[I]): Add[Nothing, Any]

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:

Type parameters

A

workflow interface implementation

Value parameters

ctg

workflow interface class tag

f

should create a workflow implementation

Attributes

See also

Worker#addWorkflowImplementationFactory

def from(cls: Class[I], f: () => I): Add[Nothing, Any]

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:

Value parameters

cls

workflow interface class

f

should create a workflow implementation

Attributes

See also

Worker#addWorkflowImplementationFactory

def fromClass(implicit ctg: ClassTag[I], isConcreteClass: IsConcreteClass[I], hasPublicNullaryConstructor: HasPublicNullaryConstructor[I]): Add[Nothing, Any]

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.

Value parameters

ctg

workflow interface class tag

Attributes

See also

Worker#registerWorkflowImplementationTypes

def fromClass(cls: Class[I])(implicit isConcreteClass: IsConcreteClass[I], hasPublicNullaryConstructor: HasPublicNullaryConstructor[I]): Add[Nothing, Any]

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.

Value parameters

cls

workflow interface class tag

Attributes

See also

Worker#registerWorkflowImplementationTypes