PHP 클래스 Kraken\Loop\Loop

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

보호된 프로퍼티들

프로퍼티 타입 설명
$loop Kraken\Loop\LoopModelInterface

공개 메소드들

메소드 설명
__construct ( Kraken\Loop\LoopModelInterface $loop )
__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\LoopExtendedInterface $loop, $all = false )
getFlowController ( )
getModel ( )
import ( Kraken\Loop\LoopExtendedInterface $loop, $all = false )
isRunning ( )
isTimerActive ( Kraken\Loop\Timer\TimerInterface $timer )
onAfterTick ( callable $listener )
onBeforeTick ( callable $listener )
onStart ( callable $listener )
onStop ( callable $listener )
onTick ( callable $listener )
removeReadStream ( $stream )
removeStream ( $stream )
removeWriteStream ( $stream )
setFlowController ( $flowController )
start ( )
stop ( )
swap ( Kraken\Loop\LoopExtendedInterface $loop, $all = false )
tick ( )

메소드 상세

__construct() 공개 메소드

public __construct ( Kraken\Loop\LoopModelInterface $loop )
$loop Kraken\Loop\LoopModelInterface

__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\LoopExtendedInterface $loop, $all = false )
$loop Kraken\Loop\LoopExtendedInterface

getFlowController() 공개 메소드

public getFlowController ( )

getModel() 공개 메소드

public getModel ( )

import() 공개 메소드

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

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

onTick() 공개 메소드

public onTick ( 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\LoopExtendedInterface $loop, $all = false )
$loop Kraken\Loop\LoopExtendedInterface

tick() 공개 메소드

public tick ( )

프로퍼티 상세

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

protected LoopModelInterface,Kraken\Loop $loop
리턴 Kraken\Loop\LoopModelInterface