PHP Class Thumper\RpcClient

Inheritance: extends BaseAmqp
Afficher le fichier Open project: php-amqplib/thumper Class Usage Examples

Protected Properties

Свойство Type Description
$queueName string
$replies string[]
$requestTimeout integer
$requests integer

Méthodes publiques

Méthode Description
addRequest ( string $messageBody, string $server, string $requestId, string $routingKey = '' ) Add request to be sent to RPC Server.
getReplies ( ) : array Get replies.
initClient ( ) Initialize client.
processMessage ( PhpAmqpLib\Message\AMQPMessage $message )
setTimeout ( integer $timeout )

Method Details

addRequest() public méthode

Add request to be sent to RPC Server.
public addRequest ( string $messageBody, string $server, string $requestId, string $routingKey = '' )
$messageBody string
$server string
$requestId string
$routingKey string

getReplies() public méthode

Get replies.
public getReplies ( ) : array
Résultat array

initClient() public méthode

Initialize client.
public initClient ( )

processMessage() public méthode

public processMessage ( PhpAmqpLib\Message\AMQPMessage $message )
$message PhpAmqpLib\Message\AMQPMessage

setTimeout() public méthode

public setTimeout ( integer $timeout )
$timeout integer

Property Details

$queueName protected_oe property

protected string $queueName
Résultat string

$replies protected_oe property

protected string[] $replies
Résultat string[]

$requestTimeout protected_oe property

protected int $requestTimeout
Résultat integer

$requests protected_oe property

protected int $requests
Résultat integer