The GearmanWorker class

(PECL gearman >= 0.5.0)

Introduction

Class synopsis

classGearmanWorker {
public__construct()
publicaddFunction(
    string$function_name,
    callable$function,
    mixed$context = null,
    int$timeout = 0
): bool
publicaddOptions(int$option): true
publicaddServer(string$host = null, int$port = 0, bool$setupExceptionHandler = true): bool
publicaddServers(string$servers = null, bool$setupExceptionHandler = true): bool
publicerror(): string|false
publicgetErrno(): int
publicoptions(): int
publicregister(string$function_name, int$timeout = 0): bool
publicremoveOptions(int$option): true
publicreturnCode(): int
publicsetId(string$id): bool
publicsetOptions(int$option): true
publicsetTimeout(int$timeout): true
publictimeout(): int
publicunregister(string$function_name): bool
publicwait(): bool
publicwork(): bool
}

Table of Contents

To Top