GearmanClient::setWorkloadCallback
GearmanJob::complete
Gearman
PHP Manual
The GearmanJob class
Introduction
Description of the class.
Class synopsis
GearmanJob
GearmanJob
{
/* Methods */
public
boolean
complete
(
string
$result
)
__construct
(
void
)
public
boolean
data
(
string
$data
)
public
boolean
exception
(
string
$exception
)
public
boolean
fail
(
void
)
public
string
functionName
(
void
)
public
string
handle
(
void
)
public
integer
returnCode
(
void
)
public
boolean
setReturn
(
string
$gearman_return_t
)
public
boolean
status
(
integer
$numerator
,
integer
$denominator
)
public
string
unique
(
void
)
public
boolean
warning
(
string
$warning
)
public
string
workload
(
void
)
public
integer
workloadSize
(
void
)
}
Table of Contents
GearmanJob::complete
— Send the result and complete status
GearmanJob::__construct
— Create a GearmanJob instance
GearmanJob::data
— Send data for a running job
GearmanJob::exception
— Send exception for running job
GearmanJob::fail
— Send fail status
GearmanJob::functionName
— Get function name
GearmanJob::handle
— Get the job handle
GearmanJob::returnCode
— Get last return code
GearmanJob::setReturn
— Set a return value
GearmanJob::status
— Send status
GearmanJob::unique
— Get the unique identifier
GearmanJob::warning
— Send a warning
GearmanJob::workload
— Get workload
GearmanJob::workloadSize
— Get size of work load
GearmanClient::setWorkloadCallback
GearmanJob::complete
Gearman
PHP Manual