ZScheduleClient

zio.temporal.schedules.ZScheduleClient
See theZScheduleClient companion object
final class ZScheduleClient

Represents Temporal schedule client

Attributes

See also

ScheduleClient

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def createSchedule(scheduleId: String, schedule: ZSchedule, options: ZScheduleOptions): TemporalIO[ZScheduleHandle]

Create a schedule and return its handle.

Create a schedule and return its handle.

Value parameters

options

Options for creating the schedule.

schedule

Schedule to create.

scheduleId

Unique ID for the schedule.

Attributes

Returns

A handle that can be used to perform operations on a schedule.

Throws
ScheduleAlreadyRunningException

if the schedule is already running.

def getHandle(scheduleId: String): TemporalIO[ZScheduleHandle]

Gets the schedule handle for the given ID.

Gets the schedule handle for the given ID.

Value parameters

scheduleId

Schedule ID to get the handle for.

Attributes

Returns

A handle that can be used to perform operations on a schedule.

def listSchedules(pageSize: Option[Int]): Stream[Throwable, ZScheduleListDescription]

List schedules.

List schedules.

Value parameters

pageSize

how many results to fetch from the Server at a time. Optional, default is 100.

Attributes

Returns

sequential stream that performs remote pagination under the hood

def newScheduleStartWorkflowStub[A : IsWorkflow](options: ZWorkflowOptions, header: Header): Of[A]

Creates new typed schedule start workflow stub builder. The instance could then be used to start a scheduled workflow.

Creates new typed schedule start workflow stub builder. The instance could then be used to start a scheduled workflow.

Type parameters

A

workflow interface

Value parameters

header

headers sent with each workflow scheduled

options

options that will be used to configure and start a new workflow.

Attributes

Returns

builder instance

def newUntypedScheduleStartWorkflowStub(workflowType: String, options: ZWorkflowOptions, header: Header): Untyped

Creates new untyped schedule start workflow stub builder. The instance could then be used to start a scheduled workflow.

Creates new untyped schedule start workflow stub builder. The instance could then be used to start a scheduled workflow.

Value parameters

header

headers sent with each workflow scheduled

options

options that will be used to configure and start a new workflow.

workflowType

workflow type

Attributes

Returns

builder instance

Concrete fields

val toJava: ScheduleClient