$__useCount
$__useCount : integer
Class RpcClient
getPack() : \PG\MSF\Pack\IPack
获取运行server实例打包对象
getRedisPool(string $poolName) : boolean|\PG\AOP\Wrapper|\PG\MSF\Pools\CoroutineRedisProxy|\Redis
获取Redis连接池
string | $poolName | 配置的Redis连接池名称 |
getRedisProxy(string $proxyName) : boolean|\PG\AOP\Wrapper|\PG\MSF\Pools\CoroutineRedisProxy|\Redis
获取Redis代理
string | $proxyName | 配置的Redis代理名称 |
setContext(\PG\MSF\Helpers\Context $context) : $this
设置上下文
\PG\MSF\Helpers\Context | $context | 请求上下文对象 |
handler(string $handler, $construct = null) : \PG\MSF\Client\RpcClient
指定服务句柄,一般为RPC服务导出的类名
string | $handler | 服务句柄(类名) |
$construct |