PHP 클래스 Kraken\Loop\Model\SelectLoop

상속: implements Kraken\Loop\LoopModelInterface
파일 보기 프로젝트 열기: kraken-php/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$flowController Kraken\Loop\Flow\FlowController
$futureTickQueue Kraken\Loop\Tick\TickFiniteQueue
$nextTickQueue Kraken\Loop\Tick\TickContinousQueue
$readListeners callable[]
$readStreams resource[]
$startTickQueue Kraken\Loop\Tick\TickContinousQueue
$stopTickQueue Kraken\Loop\Tick\TickContinousQueue
$timers Kraken\Loop\Timer\TimerBox
$writeListeners callable[]
$writeStreams resource[]

공개 메소드들

메소드 설명
__construct ( )
__destruct ( )
addPeriodicTimer ( $interval, callable $callback )
addReadStream ( $stream, callable $listener )
addTimer ( $interval, callable $callback )
addWriteStream ( $stream, callable $listener )
cancelTimer ( Kraken\Loop\Timer\TimerInterface $timer )
erase ( $all = false )
export ( Kraken\Loop\LoopModelInterface $loop, $all = false )
getFlowController ( )
import ( Kraken\Loop\LoopModelInterface $loop, $all = false )
isRunning ( )
isTimerActive ( Kraken\Loop\Timer\TimerInterface $timer )
onAfterTick ( callable $listener )
onBeforeTick ( callable $listener )
onStart ( callable $listener )
onStop ( callable $listener )
removeReadStream ( $stream )
removeStream ( $stream )
removeWriteStream ( $stream )
setFlowController ( $flowController )
start ( )
stop ( )
swap ( Kraken\Loop\LoopModelInterface $loop, $all = false )
tick ( )

비공개 메소드들

메소드 설명
getTransferableProperties ( ) : array Get list of properties that can be exported/imported safely.
streamSelect ( array &$read, array &$write, integer | null $timeout ) : integer Emulate a stream_select() implementation that does not break when passed empty stream arrays.
waitForStreamActivity ( float $timeout ) Wait/check for stream activity, or until the next timer is due.

메소드 상세

__construct() 공개 메소드

public __construct ( )

__destruct() 공개 메소드

public __destruct ( )

addPeriodicTimer() 공개 메소드

public addPeriodicTimer ( $interval, callable $callback )
$callback callable

addReadStream() 공개 메소드

public addReadStream ( $stream, callable $listener )
$listener callable

addTimer() 공개 메소드

public addTimer ( $interval, callable $callback )
$callback callable

addWriteStream() 공개 메소드

public addWriteStream ( $stream, callable $listener )
$listener callable

cancelTimer() 공개 메소드

public cancelTimer ( Kraken\Loop\Timer\TimerInterface $timer )
$timer Kraken\Loop\Timer\TimerInterface

erase() 공개 메소드

public erase ( $all = false )

export() 공개 메소드

public export ( Kraken\Loop\LoopModelInterface $loop, $all = false )
$loop Kraken\Loop\LoopModelInterface

getFlowController() 공개 메소드

public getFlowController ( )

import() 공개 메소드

public import ( Kraken\Loop\LoopModelInterface $loop, $all = false )
$loop Kraken\Loop\LoopModelInterface

isRunning() 공개 메소드

public isRunning ( )

isTimerActive() 공개 메소드

public isTimerActive ( Kraken\Loop\Timer\TimerInterface $timer )
$timer Kraken\Loop\Timer\TimerInterface

onAfterTick() 공개 메소드

public onAfterTick ( callable $listener )
$listener callable

onBeforeTick() 공개 메소드

public onBeforeTick ( callable $listener )
$listener callable

onStart() 공개 메소드

public onStart ( callable $listener )
$listener callable

onStop() 공개 메소드

public onStop ( callable $listener )
$listener callable

removeReadStream() 공개 메소드

public removeReadStream ( $stream )

removeStream() 공개 메소드

public removeStream ( $stream )

removeWriteStream() 공개 메소드

public removeWriteStream ( $stream )

setFlowController() 공개 메소드

public setFlowController ( $flowController )

start() 공개 메소드

public start ( )

stop() 공개 메소드

public stop ( )

swap() 공개 메소드

public swap ( Kraken\Loop\LoopModelInterface $loop, $all = false )
$loop Kraken\Loop\LoopModelInterface

tick() 공개 메소드

public tick ( )

프로퍼티 상세

$flowController 보호되어 있는 프로퍼티

protected FlowController,Kraken\Loop\Flow $flowController
리턴 Kraken\Loop\Flow\FlowController

$futureTickQueue 보호되어 있는 프로퍼티

protected TickFiniteQueue,Kraken\Loop\Tick $futureTickQueue
리턴 Kraken\Loop\Tick\TickFiniteQueue

$nextTickQueue 보호되어 있는 프로퍼티

protected TickContinousQueue,Kraken\Loop\Tick $nextTickQueue
리턴 Kraken\Loop\Tick\TickContinousQueue

$readListeners 보호되어 있는 프로퍼티

protected callable[] $readListeners
리턴 callable[]

$readStreams 보호되어 있는 프로퍼티

protected resource[] $readStreams
리턴 resource[]

$startTickQueue 보호되어 있는 프로퍼티

protected TickContinousQueue,Kraken\Loop\Tick $startTickQueue
리턴 Kraken\Loop\Tick\TickContinousQueue

$stopTickQueue 보호되어 있는 프로퍼티

protected TickContinousQueue,Kraken\Loop\Tick $stopTickQueue
리턴 Kraken\Loop\Tick\TickContinousQueue

$timers 보호되어 있는 프로퍼티

protected TimerBox,Kraken\Loop\Timer $timers
리턴 Kraken\Loop\Timer\TimerBox

$writeListeners 보호되어 있는 프로퍼티

protected callable[] $writeListeners
리턴 callable[]

$writeStreams 보호되어 있는 프로퍼티

protected resource[] $writeStreams
리턴 resource[]