Documentation

ConnectionInterface

Table of Contents

Methods

channel()  : Channel|null
获取一个可用通道
channels()  : array<string|int, Channel>
获取所有通道
consume()  : void
消费消息
disconnect()  : void
关闭连接
getClient()  : AbstractClient
获取原始rabbitmq-client
heartbeat()  : void
发送心跳
isConnected()  : bool
是否已连接
publish()  : mixed
发布消息
reconnect()  : void
连接/重连

Methods

channels()

获取所有通道

public channels() : array<string|int, Channel>
Return values
array<string|int, Channel>

reconnect()

连接/重连

public reconnect([array{replyCode: int, replyText: string} $options = [] ][, bool $force = true ]) : void
Parameters
$options : array{replyCode: int, replyText: string} = []
$force : bool = true

强制重连

Tags
throws
WebmanRabbitMQConnectException

        
On this page

Search results