Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
__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 ( ) |
Метод | Описание | |
---|---|---|
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 ) |
Метод | Описание | |
---|---|---|
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[] | |
Результат | 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 | |
Результат | boolean |
protected handleReceiveResponse ( Kraken\Channel\Protocol\ProtocolInterface $protocol ) : boolean | ||
$protocol | Kraken\Channel\Protocol\ProtocolInterface | |
Результат | 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 | ||
Результат | Kraken\Channel\Encoder\EncoderInterface |
protected EventListener[],Kraken\Event $handlers | ||
Результат |
protected ChannelModelInterface,Kraken\Channel $model | ||
Результат | Kraken\Channel\ChannelModelInterface |
protected TimerInterface,Kraken\Loop\Timer $repsHelperTimer | ||
Результат | Kraken\Loop\Timer\TimerInterface |
protected TimerInterface,Kraken\Loop\Timer $reqsHelperTimer | ||
Результат | Kraken\Loop\Timer\TimerInterface |
protected RouterCompositeInterface,Kraken\Channel\Router $router | ||
Результат | Kraken\Channel\Router\RouterCompositeInterface |