ServiceConfiguration
in package
FinalYes
Validated service-mode settings shared by the optional framework bridges.
Table of Contents
Properties
- $controlToken : string|null
- $endpoint : string
- $handlers : array<string|int, mixed>
- $namespace : string
- $pollTimeoutSeconds : int
- $taskQueue : string
- $token : string|null
- $workerToken : string|null
Methods
- __construct() : mixed
- assertWorkerExtensions() : void
- client() : Client
- Build the application-facing client without access to a scoped worker credential.
- controlClient() : Client
- Build the application-facing client without access to a scoped worker credential.
- fromArray() : self
- taskQueue() : string
- workerClient() : Client
- Build the worker client without access to a scoped control credential.
- handlers() : array<int, string>
- integer() : int
- nullableString() : string|null
- string() : string
- validate() : void
Properties
$controlToken read-only
public
string|null
$controlToken
= null
$endpoint read-only
public
string
$endpoint
$handlers read-only
public
array<string|int, mixed>
$handlers
$namespace read-only
public
string
$namespace
$pollTimeoutSeconds read-only
public
int
$pollTimeoutSeconds
= 5
$taskQueue read-only
public
string
$taskQueue
$token read-only
public
string|null
$token
= null
$workerToken read-only
public
string|null
$workerToken
= null
Methods
__construct()
public
__construct(string $endpoint, string $namespace, string $taskQueue, array<int, string> $handlers[, string|null $token = null ][, string|null $controlToken = null ][, string|null $workerToken = null ][, int $pollTimeoutSeconds = 5 ]) : mixed
Parameters
- $endpoint : string
- $namespace : string
- $taskQueue : string
- $handlers : array<int, string>
- $token : string|null = null
- $controlToken : string|null = null
- $workerToken : string|null = null
- $pollTimeoutSeconds : int = 5
assertWorkerExtensions()
public
static assertWorkerExtensions() : void
client()
Build the application-facing client without access to a scoped worker credential.
public
client([Transport|null $transport = null ]) : Client
Parameters
- $transport : Transport|null = null
Return values
ClientcontrolClient()
Build the application-facing client without access to a scoped worker credential.
public
controlClient([Transport|null $transport = null ]) : Client
Parameters
- $transport : Transport|null = null
Return values
ClientfromArray()
public
static fromArray(array<string, mixed> $values) : self
Parameters
- $values : array<string, mixed>
Return values
selftaskQueue()
public
taskQueue([string|null $override = null ]) : string
Parameters
- $override : string|null = null
Return values
stringworkerClient()
Build the worker client without access to a scoped control credential.
public
workerClient([Transport|null $transport = null ]) : Client
Parameters
- $transport : Transport|null = null
Return values
Clienthandlers()
private
static handlers(array<int, mixed> $handlers) : array<int, string>
Parameters
- $handlers : array<int, mixed>
Return values
array<int, string>integer()
private
static integer(array<string, mixed> $values, string $key, int $default) : int
Parameters
- $values : array<string, mixed>
- $key : string
- $default : int
Return values
intnullableString()
private
static nullableString(array<string, mixed> $values, string $key) : string|null
Parameters
- $values : array<string, mixed>
- $key : string
Return values
string|nullstring()
private
static string(array<string, mixed> $values, string $key[, string|null $default = null ]) : string
Parameters
- $values : array<string, mixed>
- $key : string
- $default : string|null = null
Return values
stringvalidate()
private
validate() : void