PHP Interface Kraken\Loop\LoopExtendedInterface

Inheritance: extends Kraken\Loop\LoopInterface
Datei anzeigen Open project: kraken-php/framework Interface Usage Examples

Public Methods

Method Description
erase ( boolean $all = false ) : Kraken\Loop\LoopExtendedInterface Erase loop.
export ( Kraken\Loop\LoopExtendedInterface $loop, boolean $all = false ) : Kraken\Loop\LoopExtendedInterface Export loop not fired handlers and/or streams to another loop model.
getFlowController ( ) : FlowController Return FlowController used by model.
getModel ( ) : Kraken\Loop\LoopModelInterface
import ( Kraken\Loop\LoopExtendedInterface $loop, boolean $all = false ) : Kraken\Loop\LoopExtendedInterface Import handlers and/or streams from another loop model.
setFlowController ( mixed $flowController ) Set FlowController used by model.
start ( ) Run the loop until there are no more tasks to perform.
stop ( ) Instruct a running event loop to stop.
swap ( Kraken\Loop\LoopExtendedInterface $loop, boolean $all = false ) : Kraken\Loop\LoopExtendedInterface Swap handlers and/or stream between loop models.
tick ( ) Perform a single iteration of the event loop.

Method Details

erase() public method

Erase loop.
public erase ( boolean $all = false ) : Kraken\Loop\LoopExtendedInterface
$all boolean
return Kraken\Loop\LoopExtendedInterface

export() public method

Export loop not fired handlers and/or streams to another loop model.
public export ( Kraken\Loop\LoopExtendedInterface $loop, boolean $all = false ) : Kraken\Loop\LoopExtendedInterface
$loop Kraken\Loop\LoopExtendedInterface
$all boolean
return Kraken\Loop\LoopExtendedInterface

getFlowController() public method

Return FlowController used by model.
public getFlowController ( ) : FlowController
return Kraken\Loop\Flow\FlowController

getModel() public method

public getModel ( ) : Kraken\Loop\LoopModelInterface
return Kraken\Loop\LoopModelInterface

import() public method

Import handlers and/or streams from another loop model.
public import ( Kraken\Loop\LoopExtendedInterface $loop, boolean $all = false ) : Kraken\Loop\LoopExtendedInterface
$loop Kraken\Loop\LoopExtendedInterface
$all boolean
return Kraken\Loop\LoopExtendedInterface

setFlowController() public method

Set FlowController used by model.
public setFlowController ( mixed $flowController )
$flowController mixed

start() public method

Run the loop until there are no more tasks to perform.
public start ( )

stop() public method

Instruct a running event loop to stop.
public stop ( )

swap() public method

Swap handlers and/or stream between loop models.
public swap ( Kraken\Loop\LoopExtendedInterface $loop, boolean $all = false ) : Kraken\Loop\LoopExtendedInterface
$loop Kraken\Loop\LoopExtendedInterface
$all boolean
return Kraken\Loop\LoopExtendedInterface

tick() public method

Perform a single iteration of the event loop.
public tick ( )