Свойство | Type | Description | |
---|---|---|---|
$buses | Kraken\Channel\ChannelInterface[] | Kraken\Channel\ChannelCompositeInterface[] | ||
$counter | integer | ||
$events | |||
$name | string | ||
$router | Kraken\Channel\Router\RouterCompositeInterface | ||
$seed | string |
Méthode | Description | |
---|---|---|
__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 ( ) |
Méthode | Description | |
---|---|---|
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[] |
Méthode | Description | |
---|---|---|
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[] | |
Résultat | 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 | |
Résultat | 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 | |
Résultat | 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 | ||
Résultat | Kraken\Channel\ChannelInterface[] | Kraken\Channel\ChannelCompositeInterface[] |
protected EventListener[][],Kraken\Event $events | ||
Résultat |
protected RouterCompositeInterface,Kraken\Channel\Router $router | ||
Résultat | Kraken\Channel\Router\RouterCompositeInterface |