Packages

final class ZWorkerFactory extends AnyRef

Maintains worker creation and lifecycle.

See also

WorkerFactory

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZWorkerFactory
  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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  9. def getWorker(taskQueue: String): UIO[Option[ZWorker]]

    taskQueue

    task queue name to lookup an existing worker for

    returns

    a worker created previously through newWorker for the given task queue.

  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def newWorker(taskQueue: String, options: ZWorkerOptions = ZWorkerOptions.default): UIO[ZWorker]

    Creates worker that connects to an instance of the Temporal Service.

    Creates worker that connects to an instance of the Temporal Service. It uses the namespace configured at the Factory level. New workers cannot be created after the start() has been called

    taskQueue

    task queue name worker uses to poll. It uses this name for both workflow and activity task queue polls.

    options

    Options for configuring worker.

    returns

    ZWorker

    See also

    WorkerFactory#newWorker

  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. def serve: URIO[Scope, Nothing]

    Allows to setup ZWorkerFactory with guaranteed finalization.

    Allows to setup ZWorkerFactory with guaranteed finalization. To be used in worker-only applications

  17. def setup: URIO[Scope, Unit]

    Allows to setup ZWorkerFactory with guaranteed finalization.

  18. def shutdown: UIO[Unit]

    Initiates an orderly shutdown in which polls are stopped and already received workflow and activity tasks are executed.

    Initiates an orderly shutdown in which polls are stopped and already received workflow and activity tasks are executed.

    See also

    WorkerFactory#shutdown

  19. def shutdownNow: UIO[Unit]

    Initiates an orderly shutdown in which polls are stopped and already received workflow and activity tasks are attempted to be stopped.

    Initiates an orderly shutdown in which polls are stopped and already received workflow and activity tasks are attempted to be stopped. This implementation cancels tasks via Thread.interrupt(), so any task that fails to respond to interrupts may never terminate.

    See also

    WorkerFactory#shutdownNow

  20. def start: UIO[Unit]

    Starts all the workers created by this factory.

  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. val toJava: WorkerFactory
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. 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