Documentation

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

disconnect()

public disconnect([mixed $replyCode = 0 ][, mixed $replyText = '' ]) : void
Parameters
$replyCode : mixed = 0
$replyText : mixed = ''
Tags
inheritDoc

getChannelLimit()

获取通道数量限制

public getChannelLimit() : int
Return values
int

getChannels()

获取已创建的通道

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>

setConfig()

public setConfig(array<string|int, mixed> $config) : void
Parameters
$config : array<string|int, mixed>

        
On this page

Search results