La classe GearmanClient
(PECL gearman >= 0.5.0)
Introduction
Représente une classe pour se connecter à un serveur de tâches Gearman et lui soumettre des requêtes
pour appliquer des fonctions sur les données fournies. La fonction appliquée doit faire partie de celles
référencées par un agent Gearman et les données traitées restent opaques du point de vue du serveur de tâches.
Synopsis de la classe
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
}
Sommaire
There are no user contributed notes for this page.