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

Allows to add workflow to this worker

Allows to add workflow to this worker

Attributes

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