« GearmanTask::uuid
GearmanWorker::addFunction »

The GearmanWorker class

(PECL gearman >= 0.5.0)

はじめに

クラス概要

class GearmanWorker {
/* メソッド */
public function __construct()
public function addFunction(
    string $function_name,
    callable $function,
    mixed $context = null,
    int $timeout = 0
): bool
public function addOptions(int $option): true
public function addServer(string $host = null, int $port = 0, bool $setupExceptionHandler = true): bool
public function addServers(string $servers = null, bool $setupExceptionHandler = true): bool
public function error(): string|false
public function getErrno(): int
public function options(): int
public function register(string $function_name, int $timeout = 0): bool
public function removeOptions(int $option): true
public function returnCode(): int
public function setId(string $id): bool
public function setOptions(int $option): true
public function setTimeout(int $timeout): true
public function timeout(): int
public function unregister(string $function_name): bool
public function unregisterAll(): bool
public function wait(): bool
public function work(): bool
}

目次

関連キーワード:
GearmanWorker   timeout   options   worker   servers   addFunction   option   server   activity   Gearman   construct   addOptions   addServer   setupExceptionHandler   addServers   getErrno   register   removeOptions   returnCode   setId   setOptions   setTimeout   unregister   unregisterAll   wait
関連する関数・ページ:
gearmanworker.setoptions   gearmanworker.removeoptions   gearmanworker.addoptions   gearmanworker.options   gearmanworker.addserver   gearmanworker.register