Свойство | Тип | Описание | |
---|---|---|---|
$channel | Kraken\Channel\ChannelInterface | ||
$receiver | string | ||
$runtime | Kraken\Runtime\RuntimeContainerInterface |
Метод | Описание | |
---|---|---|
__construct ( Kraken\Runtime\RuntimeContainerInterface $runtime, Kraken\Channel\ChannelInterface $channel, $receiver = null ) | ||
__destruct ( ) | ||
createThread ( $alias, $name, $flags = Runtime::CREATE_DEFAULT, $params = [] ) | ||
createThreads ( $definitions, $flags = Runtime::CREATE_DEFAULT, $params = [] ) | ||
destroyThread ( $alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] ) | ||
destroyThreads ( $aliases, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] ) | ||
existsThread ( $alias ) | ||
flushThreads ( $flags = Runtime::DESTROY_KEEP ) | ||
getThreads ( ) | ||
sendCommand ( $alias, $command, $params = [] ) | ||
sendMessage ( $alias, $message, $flags = Channel::MODE_DEFAULT ) | ||
sendRequest ( $alias, $message, $params = [] ) | ||
startThread ( $alias, $params = [] ) | ||
startThreads ( $aliases, $params = [] ) | ||
stopThread ( $alias, $params = [] ) | ||
stopThreads ( $aliases, $params = [] ) |
Метод | Описание | |
---|---|---|
createRequest ( Kraken\Channel\ChannelInterface $channel, string $receiver, string $command ) : |
Create Request. |
public __construct ( Kraken\Runtime\RuntimeContainerInterface $runtime, Kraken\Channel\ChannelInterface $channel, $receiver = null ) | ||
$runtime | Kraken\Runtime\RuntimeContainerInterface | |
$channel | Kraken\Channel\ChannelInterface |
protected createRequest ( Kraken\Channel\ChannelInterface $channel, string $receiver, string $command ) : |
||
$channel | Kraken\Channel\ChannelInterface | |
$receiver | string | |
$command | string | |
Результат |
public createThread ( $alias, $name, $flags = Runtime::CREATE_DEFAULT, $params = [] ) |
public createThreads ( $definitions, $flags = Runtime::CREATE_DEFAULT, $params = [] ) |
public destroyThread ( $alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] ) |
public destroyThreads ( $aliases, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] ) |
public sendMessage ( $alias, $message, $flags = Channel::MODE_DEFAULT ) |
protected ChannelInterface,Kraken\Channel $channel | ||
Результат | Kraken\Channel\ChannelInterface |