Свойство | Тип | Описание | |
---|---|---|---|
$gearman_client | The libGearman Client instance | ||
$gearman_servers | The list of Gearman Servers to connect to. |
Метод | Описание | |
---|---|---|
add ( string $hook, array $args = [], string $priority = 'normal' ) : boolean | Adds a Job to the libGearman Client's Queue. | |
get_async_group ( ) : string | The Function Group used to split libGearman functions on a multi-network install. | |
get_background_method ( string $priority ) : string | Returns the libGearman function to use based on the specified priority. | |
get_blog_id ( ) : integer | false | Caches and returns the current blog id for adding to the Job meta data. False if not a multisite install. | |
get_gearman_client ( ) : GearmanClient | false | Builds the libGearman Client Instance if the extension is installed. Once created returns the previous instance without reinitialization. | |
get_servers ( ) : array | The Gearman Servers to connect to as defined in wp-config.php. | |
register ( ) : boolean | Creates a new libGearman Client instances and configures the servers that it should connect to. |
public get_async_group ( ) : string | ||
Результат | string | The prefixed group name |
public get_background_method ( string $priority ) : string | ||
$priority | string | low, normal or high |
Результат | string | The corresponding method name |
public get_blog_id ( ) : integer | false | ||
Результат | integer | false | The current blog ids id. |
public get_gearman_client ( ) : GearmanClient | false | ||
Результат | GearmanClient | false | An instance of GearmanClient |
public get_servers ( ) : array | ||
Результат | array | The list of servers for this Worker. |