프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |