Gearman
PHP Manual

The GearmanWorker class

導入

Description of the class.

クラス概要

GearmanWorker
GearmanWorker {
/* Methods */
public boolean addFunction ( string $function_name , callback $function [, mixed &$context [, integer $timeout ]] )
public boolean addOptions ( integer $option )
public boolean addServer ([ string $host = 127.0.0.1 [, integer $port = 4730 ]] )
public boolean addServers ( string $servers = 127.0.0.1:4730 )
public void clone ( void )
__construct ( void )
public boolean echo ( string $workload )
public string error ( void )
public integer getErrno ( void )
public integer options ( void )
public boolean register ( string $function_name [, integer $timeout ] )
public boolean removeOptions ( integer $option )
public integer returnCode ( void )
public boolean setOptions ( integer $option )
public boolean setOptions ( integer $timeout )
public integer timeout ( void )
public boolean unregister ( string $function_name )
public boolean unregisterAll ( void )
public boolean wait ( void )
public boolean work ( void )
}

目次


Gearman
PHP Manual