Свойство | Type | Description | |
---|---|---|---|
$counter | integer | ||
$encoder | Kraken\Channel\Encoder\EncoderInterface | ||
$handlers | |||
$model | Kraken\Channel\ChannelModelInterface | ||
$name | string | ||
$repsHelperTimer | Kraken\Loop\Timer\TimerInterface | ||
$reqsHelperTimer | Kraken\Loop\Timer\TimerInterface | ||
$router | Kraken\Channel\Router\RouterCompositeInterface | ||
$seed | string |
Méthode | Description | |
---|---|---|
__construct ( string $name, Kraken\Channel\ChannelModelInterface $model, Kraken\Channel\Router\RouterCompositeInterface $router, Kraken\Channel\Encoder\EncoderInterface $encoder, Kraken\Loop\LoopInterface $loop ) | ||
__destruct ( ) | ||
createProtocol ( $message = null ) | ||
filterConnected ( $pattern ) | ||
getConnected ( ) | ||
getInput ( ) | ||
getModel ( ) | ||
getName ( ) | ||
getOutput ( ) | ||
getRouter ( ) | ||
handleReceive ( $sender, $multipartMessage ) | ||
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 ) | ||
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 ) | ||
start ( ) | ||
stop ( ) |
Méthode | Description | |
---|---|---|
createMessageProtocol ( string | string[] $message ) : Kraken\Channel\Protocol\ProtocolInterface | ||
genID ( ) : string | ||
getNextSuffix ( ) : string | ||
getTime ( ) : float | ||
handlePushAsync ( $name, $message, $flags = Channel::MODE_DEFAULT ) | ||
handlePushRequest ( $name, $message, $flags = Channel::MODE_DEFAULT, callable $success = null, callable $failure = null, callable $cancel = null, $timeout ) | ||
handleReceiveRequest ( Kraken\Channel\Protocol\ProtocolInterface $protocol ) : boolean | ||
handleReceiveResponse ( Kraken\Channel\Protocol\ProtocolInterface $protocol ) : boolean | ||
handleSendAsync ( $name, $message, $flags = Channel::MODE_DEFAULT ) | ||
handleSendRequest ( $name, $message, $flags = Channel::MODE_DEFAULT, callable $success = null, callable $failure = null, callable $cancel = null, $timeout ) |
Méthode | Description | |
---|---|---|
registerEvents ( ) | ||
registerPeriodicTimers ( ) | ||
unregisterEvents ( ) | ||
unregisterPeriodicTimers ( ) |
public __construct ( string $name, Kraken\Channel\ChannelModelInterface $model, Kraken\Channel\Router\RouterCompositeInterface $router, Kraken\Channel\Encoder\EncoderInterface $encoder, Kraken\Loop\LoopInterface $loop ) | ||
$name | string | |
$model | Kraken\Channel\ChannelModelInterface | |
$router | Kraken\Channel\Router\RouterCompositeInterface | |
$encoder | Kraken\Channel\Encoder\EncoderInterface | |
$loop | Kraken\Loop\LoopInterface |
protected createMessageProtocol ( string | string[] $message ) : Kraken\Channel\Protocol\ProtocolInterface | ||
$message | string | string[] | |
Résultat | Kraken\Channel\Protocol\ProtocolInterface |
protected handlePushAsync ( $name, $message, $flags = Channel::MODE_DEFAULT ) |
protected handleReceiveRequest ( Kraken\Channel\Protocol\ProtocolInterface $protocol ) : boolean | ||
$protocol | Kraken\Channel\Protocol\ProtocolInterface | |
Résultat | boolean |
protected handleReceiveResponse ( Kraken\Channel\Protocol\ProtocolInterface $protocol ) : boolean | ||
$protocol | Kraken\Channel\Protocol\ProtocolInterface | |
Résultat | boolean |
protected handleSendAsync ( $name, $message, $flags = Channel::MODE_DEFAULT ) |
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 EncoderInterface,Kraken\Channel\Encoder $encoder | ||
Résultat | Kraken\Channel\Encoder\EncoderInterface |
protected EventListener[],Kraken\Event $handlers | ||
Résultat |
protected ChannelModelInterface,Kraken\Channel $model | ||
Résultat | Kraken\Channel\ChannelModelInterface |
protected TimerInterface,Kraken\Loop\Timer $repsHelperTimer | ||
Résultat | Kraken\Loop\Timer\TimerInterface |
protected TimerInterface,Kraken\Loop\Timer $reqsHelperTimer | ||
Résultat | Kraken\Loop\Timer\TimerInterface |
protected RouterCompositeInterface,Kraken\Channel\Router $router | ||
Résultat | Kraken\Channel\Router\RouterCompositeInterface |