AbstractClient
extends Client
in package
uses
ClientMethods, ConfigMethods, LoggerMethods, MechanismMethods
AbstractYes
Table of Contents
Methods
- __construct() : mixed
- __destruct() : mixed
- 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
connect()
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>