Packages

class ZWorker extends AnyRef

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

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZWorker
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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 addActivityImplementation[A <: AnyRef](activity: A)(implicit arg0: ExtendsActivity[A]): UIO[ZWorker]

    Registers activity implementation objects with a worker.

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

    See also

    Worker#registerActivitiesImplementations

  5. def addActivityImplementationService[A <: AnyRef](implicit arg0: ExtendsActivity[A], arg1: Tag[A]): URIO[A, ZWorker]

    Registers activity implementation objects with a worker.

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

    See also

    Worker#registerActivitiesImplementations

  6. def addActivityImplementations(activityImplementationObjects: List[ZActivityImplementationObject[_]]): UIO[ZWorker]

    Register activity implementation objects with a worker.

    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.

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

  8. def addWorkflow[I](implicit arg0: ExtendsWorkflow[I]): AddWorkflowDsl[I]

    Adds workflow to this worker

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

  10. def addWorkflowImplementations(options: ZWorkflowImplementationOptions, workflowImplementationClass: ZWorkflowImplementationClass[_], moreClasses: ZWorkflowImplementationClass[_]*): UIO[ZWorker]

  11. def addWorkflowImplementations(workflowImplementationClasses: List[ZWorkflowImplementationClass[_]]): UIO[ZWorker]

    Registers workflow implementation classes with a worker.

    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.

    Exceptions thrown

    io.temporal.worker.TypeAlreadyRegisteredException if one of the workflow types is already registered

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

  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def isSuspended: UIO[Boolean]
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. def resumePolling: UIO[Unit]
  25. def suspendPolling: UIO[Unit]
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def taskQueue: String
  28. val toJava: Worker
  29. def toString(): String
    Definition Classes
    ZWorker → AnyRef → Any
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped