php gearman 视频,PHP GearmanClient 用法 手册 | 示例代码

GearmanClient::addServer — Add a job server to the client

GearmanClient::addServers — Add a list of job servers to the client

GearmanClient::addTask — Add a task to be run in parallel

GearmanClient::addTaskBackground — Add a background task to be run in parallel

GearmanClient::addTaskHigh — Add a high priority task to run in parallel

GearmanClient::addTaskHighBackground — Add a high priority background task to be run in parallel

GearmanClient::addTaskLow — Add a low priority task to run in parallel

GearmanClient::addTaskLowBackground — Add a low priority background task to be run in parallel

GearmanClient::clearCallbacks — Clear all task callback functions

GearmanClient::clone — Create a copy of a GearmanClient object

GearmanClient::__construct — Create a GearmanClient instance

GearmanClient::context — Get the application context

GearmanClient::data — Get the application data (deprecated)

GearmanClient::do — Run a single task and return a result [deprecated]

GearmanClient::doBackground — Run a task in the background

GearmanClient::doHigh — Run a single high priority task

GearmanClient::doHighBackground — Run a high priority task in the background

GearmanClient::doJobHandle — Get the job handle for the running task

GearmanClient::doLow — Run a single low priority task

GearmanClient::doLowBackground — Run a low priority task in the background

GearmanClient::doNormal — Run a single task and return a result

GearmanClient::doStatus — Get the status for the running task

GearmanClient::echo — Send data to all job servers to see if they echo it back [deprecated]

GearmanClient::error — Returns an error string for the last error encountered

GearmanClient::jobStatus — Get the status of a background job

GearmanClient::ping — Send data to all job servers to see if they echo it back

GearmanClient::returnCode — Get the last Gearman return code

GearmanClient::runTasks — Run a list of tasks in parallel

GearmanClient::setClientCallback — Callback function when there is a data packet for a task (deprecated)

GearmanClient::setCompleteCallback — Set a function to be called on task completion

GearmanClient::setContext — Set application context

GearmanClient::setCreatedCallback — Set a callback for when a task is queued

GearmanClient::setData — Set application data (deprecated)

GearmanClient::setDataCallback — Callback function when there is a data packet for a task

GearmanClient::setExceptionCallback — Set a callback for worker exceptions

GearmanClient::setFailCallback — Set callback for job failure

GearmanClient::setStatusCallback — Set a callback for collecting task status

GearmanClient::setTimeout — Set socket I/O activity timeout

GearmanClient::setWarningCallback — Set a callback for worker warnings

GearmanClient::setWorkloadCallback — Set a callback for accepting incremental data updates

GearmanClient::timeout — Get current socket I/O activity timeout value

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值