ZWorkflowServiceStubs

zio.temporal.workflow.ZWorkflowServiceStubs
See theZWorkflowServiceStubs companion object

Initializes and holds gRPC blocking and future stubs.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Awaits for gRPC stubs shutdown up to the specified timeout.

Awaits for gRPC stubs shutdown up to the specified timeout.

The shutdown has to be initiated through shutdown or shutdownNow.

Attributes

options

await options with polling interval and poll delay

def setup(options: ZAwaitTerminationOptions): URIO[Scope, Unit]

Allows to setup ZWorkflowServiceStubs with guaranteed finalization.

Allows to setup ZWorkflowServiceStubs with guaranteed finalization.

Attributes

def shutdown: UIO[Unit]

Shutdowns client asynchronously allowing existing gRPC calls to finish

Shutdowns client asynchronously allowing existing gRPC calls to finish

Attributes

def shutdownNow: UIO[Unit]

Shutdowns client immediately cancelling existing gRPC calls

Shutdowns client immediately cancelling existing gRPC calls

Attributes

Deprecated methods

def use[R, E, A](options: ZAwaitTerminationOptions)(thunk: ZIO[R, E, A]): ZIO[R, E, A]

Allows to run arbitrary effect ensuring a shutdown on effect completion.

Allows to run arbitrary effect ensuring a shutdown on effect completion.

Shutdown will be initiated when effect either completes successfully or fails (with error or defect) The effect will return after shutdown completed

Attributes

options

await options with polling interval and poll delay

Deprecated
[Since version 0.2.0]

Concrete fields

val toJava: WorkflowServiceStubs