Documentation

ScheduleClient
in package
implements ScheduleClientInterface uses ClientContextTrait

FinalYes

Table of Contents

Interfaces

ScheduleClientInterface

Properties

$clientOptions  : ClientOptions
$converter  : DataConverterInterface
$marshaller  : MarshallerInterface
$protoConverter  : ProtoToArrayConverter

Methods

__construct()  : mixed
create()  : ScheduleClientInterface
createSchedule()  : ScheduleHandle
Create a schedule and return its handle.
getHandle()  : ScheduleHandle
Get a schedule handle to interact with an existing schedule.
listSchedules()  : Paginator<string|int, ScheduleListEntry>
List all schedules in a namespace.

Properties

Methods

createSchedule()

Create a schedule and return its handle.

public createSchedule(Schedule $schedule[, ScheduleOptions|null $options = null ][, string|null $scheduleId = null ]) : ScheduleHandle
Parameters
$schedule : Schedule

Schedule to create.

$options : ScheduleOptions|null = null

Options for creating the schedule.

$scheduleId : string|null = null

Unique ID for the schedule. Will be generated as UUID if not provided.

Return values
ScheduleHandle

getHandle()

Get a schedule handle to interact with an existing schedule.

public getHandle(string $scheduleID[, string|null $namespace = null ]) : ScheduleHandle
Parameters
$scheduleID : string
$namespace : string|null = null

If null, the preconfigured namespace will be used.

Return values
ScheduleHandle

listSchedules()

List all schedules in a namespace.

public listSchedules([string|null $namespace = null ][, int $pageSize = 0 ]) : Paginator<string|int, ScheduleListEntry>
Parameters
$namespace : string|null = null

If null, the preconfigured namespace will be used.

$pageSize : int = 0

Maximum number of Schedule info per page.

Return values
Paginator<string|int, ScheduleListEntry>

        
On this page

Search results