ZWorker

zio.temporal.worker.ZWorker
See theZWorker companion object
class ZWorker

Hosts activity and workflow implementations. Uses long poll to receive activity and workflow tasks and processes them in a correspondent thread pool.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addActivityImplementation[A <: AnyRef : ExtendsActivity](activity: A): UIO[ZWorker]

Registers activity implementation objects with a worker. An implementation object can implement one or more activity types.

Registers activity implementation objects with a worker. An implementation object can implement one or more activity types.

Attributes

See also

Worker#registerActivitiesImplementations

def addActivityImplementationService[A <: AnyRef : Tag]: URIO[A, ZWorker]

Registers activity implementation objects with a worker. An implementation object can implement one or more activity types.

Registers activity implementation objects with a worker. An implementation object can implement one or more activity types.

Attributes

See also

Worker#registerActivitiesImplementations

def addActivityImplementations(activityImplementationObject: ZActivityImplementationObject[_], moreObjects: ZActivityImplementationObject[_]*): UIO[ZWorker]

Attributes

See also
def addActivityImplementations(activityImplementationObjects: List[ZActivityImplementationObject[_]]): UIO[ZWorker]

Register activity implementation objects with a worker. An implementation object can implement one or more activity types.

Register activity implementation objects with a worker. An implementation object can implement one or more activity types.

An activity implementation object must implement at least one interface annotated with zio.temporal.activityInterface. Each method of the annotated interface becomes an activity type.

Implementations that share a worker must implement different interfaces as an activity type is identified by the activity interface, not by the implementation.

Attributes

Adds workflow to this worker

Adds workflow to this worker

Attributes

def addWorkflowImplementations(workflowImplementationClass: ZWorkflowImplementationClass[_], moreClasses: ZWorkflowImplementationClass[_]*): UIO[ZWorker]

Attributes

See also
def addWorkflowImplementations(workflowImplementationClasses: List[ZWorkflowImplementationClass[_]]): UIO[ZWorker]

Registers workflow implementation classes with a worker. Can be called multiple times to add more types. A workflow implementation class must implement at least one interface with a method annotated with zio.temporal.workflowMethod. By default, the short name of the interface is used as a workflow type that this worker supports.

Registers workflow implementation classes with a worker. Can be called multiple times to add more types. A workflow implementation class must implement at least one interface with a method annotated with zio.temporal.workflowMethod. By default, the short name of the interface is used as a workflow type that this worker supports.

Implementations that share a worker must implement different interfaces as a workflow type is identified by the workflow interface, not by the implementation.

Attributes

Throws
io.temporal.worker.TypeAlreadyRegisteredException

if one of the workflow types is already registered

Attributes

See also
def addWorkflowImplementations(options: ZWorkflowImplementationOptions, workflowImplementationClasses: List[ZWorkflowImplementationClass[_]]): UIO[ZWorker]

Attributes

See also
def isSuspended: UIO[Boolean]
def resumePolling: UIO[Unit]
def suspendPolling: UIO[Unit]
def taskQueue: String
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

val toJava: Worker