PHP Interface Kraken\Runtime\Container\AbstractManagerInterface

Show file Open project: kraken-php/framework

Public Methods

Method Description
sendCommand ( string $alias, string $command, mixed[] $params = [] ) Invoke remote command using specified Runtime Container.
sendMessage ( string $alias, string | Kraken\Channel\Protocol\ProtocolInterface $message, integer $flags = Channel::MODE_DEFAULT ) : Kraken\Promise\PromiseInterface Send async message to specified Runtime Container.
sendRequest ( string $alias, string | Kraken\Channel\Protocol\ProtocolInterface $message, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Send request to specified Runtime Container.

Method Details

sendCommand() public method

Invoke remote command using specified Runtime Container.
public sendCommand ( string $alias, string $command, mixed[] $params = [] )
$alias string
$command string
$params mixed[]

sendMessage() public method

Send async message to specified Runtime Container.
public sendMessage ( string $alias, string | Kraken\Channel\Protocol\ProtocolInterface $message, integer $flags = Channel::MODE_DEFAULT ) : Kraken\Promise\PromiseInterface
$alias string
$message string | Kraken\Channel\Protocol\ProtocolInterface
$flags integer
return Kraken\Promise\PromiseInterface

sendRequest() public method

Send request to specified Runtime Container.
public sendRequest ( string $alias, string | Kraken\Channel\Protocol\ProtocolInterface $message, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$alias string
$message string | Kraken\Channel\Protocol\ProtocolInterface
$params mixed[]
return Kraken\Promise\PromiseInterface