Client
extends AbstractClient
in package
Table of Contents
Methods
- __construct() : mixed
- __destruct() : mixed
- channel() : Channel
- 获取通道
- channelsPool() : Pool|null
- 获取通道池
- connect() : AbstractClient
- disconnect() : void
- getChannelLimit() : int
- 获取通道数量限制
- getChannels() : array<string|int, Channel>
- 获取已创建的通道
- getConfig() : mixed
- getConfigs() : array<string|int, mixed>
- heartbeat() : void
- isRunning() : bool
- onDataAvailable() : void
- setConfig() : void
Methods
__construct()
public
__construct([array<string|int, mixed> $options = [] ][, LoggerInterface|null $logger = null ]) : mixed
Parameters
- $options : array<string|int, mixed> = []
- $logger : LoggerInterface|null = null
__destruct()
public
__destruct() : mixed
channel()
获取通道
public
channel() : Channel
Tags
Return values
ChannelchannelsPool()
获取通道池
public
channelsPool() : Pool|null
Return values
Pool|nullconnect()
public
connect() : AbstractClient
Tags
Return values
AbstractClientdisconnect()
public
disconnect([mixed $replyCode = 0 ][, mixed $replyText = '' ]) : void
Parameters
- $replyCode : mixed = 0
- $replyText : mixed = ''
Tags
getChannelLimit()
获取通道数量限制
public
getChannelLimit() : int
Return values
intgetChannels()
获取已创建的通道
public
getChannels() : array<string|int, Channel>
Return values
array<string|int, Channel>getConfig()
public
getConfig(string $key, mixed $default) : mixed
Parameters
- $key : string
- $default : mixed
getConfigs()
public
getConfigs() : array<string|int, mixed>
Return values
array<string|int, mixed>heartbeat()
public
heartbeat() : void
isRunning()
public
isRunning() : bool
Return values
boolonDataAvailable()
public
onDataAvailable() : void
setConfig()
public
setConfig(array<string|int, mixed> $config) : void
Parameters
- $config : array<string|int, mixed>