ZActivityStub

zio.temporal.activity.ZActivityStub$
See theZActivityStub companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final implicit class Ops[A](self: Of[A]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
sealed trait Untyped

An untyped version of ZActivityStub

An untyped version of ZActivityStub

Attributes

Supertypes
class Object
trait Matchable
class Any

Inherited types

final type Of[+T] = A & T

Stub is a compile-time view of temporal's runtime abstractions, such as Workflows.

Stub is a compile-time view of temporal's runtime abstractions, such as Workflows.

Type parameters

T

compile-time view

Attributes

Note

Do not call methods of proxied workflows directly! It should be used only within special methods like ZWorkflowStub.signal, ZWorkflowStub.start, ZWorkflowStub.execute and so on.

Inherited from:
Stubs (hidden)

Value members

Inherited methods

inline def execute[R](inline f: R)(using javaTypeTag: JavaTypeTag[R]): R

Executes the given activity synchronously. Accepts the activity method invocation

Executes the given activity synchronously. Accepts the activity method invocation

Example:

 val stub: ZActivityStub.Of[T] = ???

 val result: R = ZActivityStub.execute(
   stub.someMethod(someArg)
 )

Type parameters

R

activity result type

Value parameters

f

the activity invocation

Attributes

Returns

the activity result

Inherited from:
ZActivityExecutionSyntax
inline def executeAsync[R](inline f: R)(using javaTypeTag: JavaTypeTag[R]): ZAsync[R]

Executes the given activity asynchronously. Accepts the activity method invocation

Executes the given activity asynchronously. Accepts the activity method invocation

Example:

 val stub: ZActivityStub.Of[T] = ???

 val result: ZAsync[R] = ZActivityStub.executeAsync(
   stub.someMethod(someArg)
 )

Type parameters

R

activity result type

Value parameters

f

the activity invocation

Attributes

Returns

the activity result (async)

Inherited from:
ZActivityExecutionSyntax

Implicits

Implicits

final implicit def Ops[A](self: Of[A]): Ops[A]