Better PHP Documentation
opinionated
Open main menu
Get Started
Documentation
Community
Training
Better PHP Documentation
Close menu
Get Started
Documentation
Community
Training
Log in
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
La classe GearmanJob
(PECL gearman >= 0.5.0)
Introduction
Synopsis de la classe
class
GearmanJob
{
/* Méthodes */
public
function
functionName
():
false
|
string
public
function
handle
():
false
|
string
public
function
returnCode
():
int
public
function
sendComplete
(
string
$result
):
bool
public
function
sendData
(
string
$data
):
bool
public
function
sendException
(
string
$exception
):
bool
public
function
sendFail
():
bool
public
function
sendStatus
(
int
$numerator
,
int
$denominator
):
bool
public
function
sendWarning
(
string
$warning
):
bool
public
function
setReturn
(
int
$gearman_return_t
):
bool
public
function
unique
():
false
|
string
public
function
workload
():
string
public
function
workloadSize
():
int
}
Sommaire
GearmanJob::complete
— Envoie les résultats ainsi que le statut complet (obsolète)
GearmanJob::__construct
— Crée une nouvelle instance GearmanJob
GearmanJob::data
— Envoie des données pour un travail en cours d'exécution (obsolète)
GearmanJob::exception
— Envoie une exception pour un travail en cours d'exécution (obsolète)
GearmanJob::fail
— Envoie un statut d'échec (obsolète)
GearmanJob::functionName
— Récupère le nom de la fonction
GearmanJob::handle
— Récupère le gestionnaire de travaux
GearmanJob::returnCode
— Récupère le dernier code retourné
GearmanJob::sendComplete
— Envoie le résultat ainsi que le statut complet
GearmanJob::sendData
— Envoie les données pour un travail en cours d'exécution
GearmanJob::sendException
— Envoie une exception pour un travail en cours d'exécution
GearmanJob::sendFail
— Envoie un statut d'échec
GearmanJob::sendStatus
— Envoie un statut
GearmanJob::sendWarning
— Envoie une alerte
GearmanJob::setReturn
— Définit une valeur de retour
GearmanJob::status
— Envoie un statut (obsolète)
GearmanJob::unique
— Récupère l'identifiant unique
GearmanJob::warning
— Envoie une alerte (obsolète)
GearmanJob::workload
— Récupère la charge de travail
GearmanJob::workloadSize
— Récupère la taille de la charge de travail
Found A Problem?
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.
0
pcntl_sigtimedwait
Waits for signals, with a timeout
0
similar_text
Calculate the similarity between two strings
0
boolval
Get the boolean value of a variable
0
curl_multi_close
Close a set of cURL handles
0
imap_body
Read the message body
0
mb_strpos
Find position of first occurrence of string in a string
0
pg_send_prepare
Sends a request to create a prepared statement with the given parameters, without waiting for completion
0
swoole_native_socket_bind
0
Arr::prependKeysWith
0
zend_version
Gets the version of the current Zend engine
^