The GearmanClient class
(PECL gearman >= 0.5.0)
简介
Represents a class for connecting to a Gearman job server and making requests to perform
some function on provided data. The function performed must be one registered by a Gearman
worker and the data passed is opaque to the job server.
类摘要
class GearmanClient
{
public addServer(
string $host
= null
,
int $port
= 0,
bool $setupExceptionHandler
= true
):
bool
public addServers(
string $servers
= null
,
bool $setupExceptionHandler
= true
):
bool
public addTask(
string $function_name
,
string|int|float $workload
,
mixed $context
= null
,
?string $unique_key
= null
):
GearmanTask|false
public addTaskHigh(
string $function_name
,
string|int|float $workload
,
mixed $context
= null
,
?string $unique_key
= null
):
GearmanTask|false
public addTaskLow(
string $function_name
,
string|int|float $workload
,
mixed $context
= null
,
?string $unique_key
= null
):
GearmanTask|false
public doBackground(
string $function
,
string $workload
,
?string $unique
= null
):
string
public doHigh(
string $function
,
string $workload
,
?string $unique
= null
):
string
public doHighBackground(
string $function
,
string $workload
,
?string $unique
= null
):
string
public doLow(
string $function
,
string $workload
,
?string $unique
= null
):
string
public doLowBackground(
string $function
,
string $workload
,
?string $unique
= null
):
string
public doNormal(
string $function
,
string $workload
,
?string $unique
= null
):
string
public error():
string|false
public ping(
string $workload
):
bool
}
目录
There are no user contributed notes for this page.