Documentation

ConnectionInterface

Table of Contents

Methods

channel()  : Channel
get free channel
channels()  : Pool|null
get channels pool
connect()  : void
连接
connection()  : AsyncTcpConnection|mixed
tcp connection
disconnect()  : void
关闭连接
frameSend()  : null|bool
send protocol frame
getState()  : int
get state
id()  : string
get id
masterChannel()  : null|Channel
master channel
setState()  : void
set state

Methods

connection()

tcp connection

public connection() : AsyncTcpConnection|mixed
Return values
AsyncTcpConnection|mixed

disconnect()

关闭连接

public disconnect([array{replyCode: int, replyText: string, message: string|null, code: int|null} $options = [] ]) : void
Parameters
$options : array{replyCode: int, replyText: string, message: string|null, code: int|null} = []
Tags
throws
WebmanRabbitMQConnectException

frameSend()

send protocol frame

public frameSend(AbstractFrame $frame) : null|bool
Parameters
$frame : AbstractFrame
Return values
null|bool

        
On this page

Search results