Свойство | Тип | Описание | |
---|---|---|---|
$buses | Kraken\Channel\ChannelInterface[] | Kraken\Channel\ChannelCompositeInterface[] | ||
$counter | integer | ||
$events | |||
$name | string | ||
$router | Kraken\Channel\Router\RouterCompositeInterface | ||
$seed | string |
Метод | Описание | |
---|---|---|
__construct ( string $name, Kraken\Channel\ChannelInterface[] | Kraken\Channel\ChannelCompositeInterface[] $buses = [], Kraken\Channel\Router\RouterCompositeInterface $router, Kraken\Loop\LoopInterface $loop ) | ||
__destruct ( ) | ||
createProtocol ( $message = null ) | ||
existsBus ( $name ) | ||
filterConnected ( $pattern ) | ||
getBus ( $name ) | ||
getBuses ( ) | ||
getConnected ( ) | ||
getInput ( ) | ||
getModel ( ) | ||
getName ( ) | ||
getOutput ( ) | ||
getRouter ( ) | ||
handleReceive ( string $sender, Kraken\Channel\Protocol\ProtocolInterface $protocol ) | ||
isConnected ( $name ) | ||
isStarted ( ) | ||
isStopped ( ) | ||
onConnect ( callable $handler ) | ||
onDisconnect ( callable $handler ) | ||
onInput ( callable $handler ) | ||
onOutput ( callable $handler ) | ||
onStart ( callable $handler ) | ||
onStop ( callable $handler ) | ||
pull ( $sender, Kraken\Channel\Protocol\ProtocolInterface $protocol ) | ||
push ( $name, $message, $flags = Channel::MODE_DEFAULT, callable $success = null, callable $failure = null, callable $cancel = null, $timeout ) | ||
pushAsync ( $name, $message, $flags = Channel::MODE_DEFAULT ) | ||
pushRequest ( $name, $message, $flags = Channel::MODE_DEFAULT, callable $success = null, callable $failure = null, callable $cancel = null, $timeout ) | ||
receive ( $sender, Kraken\Channel\Protocol\ProtocolInterface $protocol ) | ||
removeBus ( $name ) | ||
send ( $name, $message, $flags = Channel::MODE_DEFAULT, callable $success = null, callable $failure = null, callable $cancel = null, $timeout ) | ||
sendAsync ( $name, $message, $flags = Channel::MODE_DEFAULT ) | ||
sendRequest ( $name, $message, $flags = Channel::MODE_DEFAULT, callable $success = null, callable $failure = null, callable $cancel = null, $timeout ) | ||
setBus ( $name, $channel ) | ||
start ( ) | ||
stop ( ) |
Метод | Описание | |
---|---|---|
createMessageProtocol ( Kraken\Channel\Protocol\ProtocolInterface | null | string | string[] $message ) : Kraken\Channel\Protocol\ProtocolInterface | ||
genID ( ) : string | ||
getNextSuffix ( ) : integer | ||
getTime ( ) : float | ||
handlePushAsync ( string $name, Kraken\Channel\Protocol\ProtocolInterface $message, integer $flags = Channel::MODE_DEFAULT ) : boolean | ||
handlePushRequest ( string $name, string | Kraken\Channel\Protocol\ProtocolInterface $message, integer $flags = Channel::MODE_DEFAULT, callable $success = null, callable $failure = null, callable $cancel = null, float $timeout ) : boolean | ||
handleSendAsync ( string $name, Kraken\Channel\Protocol\ProtocolInterface $message, integer $flags = Channel::MODE_DEFAULT ) : boolean | ||
handleSendRequest ( string $name, string | Kraken\Channel\Protocol\ProtocolInterface $message, integer $flags = Channel::MODE_DEFAULT, callable $success = null, callable $failure = null, callable $cancel = null, float $timeout ) : bool[] |
Метод | Описание | |
---|---|---|
combine ( mixed | mixed[] | null $in, mixed | mixed[] | null $out, callable $combinator ) : mixed | mixed[] |
public __construct ( string $name, Kraken\Channel\ChannelInterface[] | Kraken\Channel\ChannelCompositeInterface[] $buses = [], Kraken\Channel\Router\RouterCompositeInterface $router, Kraken\Loop\LoopInterface $loop ) | ||
$name | string | |
$buses | Kraken\Channel\ChannelInterface[] | Kraken\Channel\ChannelCompositeInterface[] | |
$router | Kraken\Channel\Router\RouterCompositeInterface | |
$loop | Kraken\Loop\LoopInterface |
protected createMessageProtocol ( Kraken\Channel\Protocol\ProtocolInterface | null | string | string[] $message ) : Kraken\Channel\Protocol\ProtocolInterface | ||
$message | Kraken\Channel\Protocol\ProtocolInterface | null | string | string[] | |
Результат | Kraken\Channel\Protocol\ProtocolInterface |
protected handlePushRequest ( string $name, string | Kraken\Channel\Protocol\ProtocolInterface $message, integer $flags = Channel::MODE_DEFAULT, callable $success = null, callable $failure = null, callable $cancel = null, float $timeout ) : boolean | ||
$name | string | |
$message | string | Kraken\Channel\Protocol\ProtocolInterface | |
$flags | integer | |
$success | callable | |
$failure | callable | |
$cancel | callable | |
$timeout | float | |
Результат | boolean |
public handleReceive ( string $sender, Kraken\Channel\Protocol\ProtocolInterface $protocol ) | ||
$sender | string | |
$protocol | Kraken\Channel\Protocol\ProtocolInterface |
protected handleSendRequest ( string $name, string | Kraken\Channel\Protocol\ProtocolInterface $message, integer $flags = Channel::MODE_DEFAULT, callable $success = null, callable $failure = null, callable $cancel = null, float $timeout ) : bool[] | ||
$name | string | |
$message | string | Kraken\Channel\Protocol\ProtocolInterface | |
$flags | integer | |
$success | callable | |
$failure | callable | |
$cancel | callable | |
$timeout | float | |
Результат | bool[] |
public pull ( $sender, Kraken\Channel\Protocol\ProtocolInterface $protocol ) | ||
$protocol | Kraken\Channel\Protocol\ProtocolInterface |
public receive ( $sender, Kraken\Channel\Protocol\ProtocolInterface $protocol ) | ||
$protocol | Kraken\Channel\Protocol\ProtocolInterface |
protected ChannelInterface[],Kraken\Channel|ChannelCompositeInterface[],Kraken\Channel $buses | ||
Результат | Kraken\Channel\ChannelInterface[] | Kraken\Channel\ChannelCompositeInterface[] |
protected EventListener[][],Kraken\Event $events | ||
Результат |
protected RouterCompositeInterface,Kraken\Channel\Router $router | ||
Результат | Kraken\Channel\Router\RouterCompositeInterface |