The GearmanWorker class

Introduction

Class synopsis

GearmanWorker
/* Methods */
public __construct()
public bool addFunction(
    string $function_name,
    callable $function,
    mixed $context = null,
    int $timeout = 0
)
public true addOptions(int $option)
public bool addServer(string $host = null, int $port = 0, bool $setupExceptionHandler = true)
public bool addServers(string $servers = null, bool $setupExceptionHandler = true)
public stringfalse error()
public int getErrno()
public int options()
public bool register(string $function_name, int $timeout = 0)
public true removeOptions(int $option)
public int returnCode()
public bool setId(string $id)
public true setOptions(int $option)
public true setTimeout(int $timeout)
public int timeout()
public bool unregister(string $function_name)
public bool unregisterAll()
public bool wait()
public bool work()
Table of Contents