PHP 클래스 Thruway\Subscription\StateHandlerRegistry

상속: extends Thruway\Module\RouterModuleClient
파일 보기 프로젝트 열기: voryx/thruway

공개 메소드들

메소드 설명
__construct ( string $realm, React\EventLoop\LoopInterface $loop = null )
addStateHandler ( $args )
getReady ( ) : boolean Get ready flag
initModule ( Thruway\Peer\RouterInterface $router, React\EventLoop\LoopInterface $loop ) Gets called when the module is initialized in the router
onSessionStart ( ClientSession $session, Thruway\Transport\TransportProviderInterface $transport ) Handles session started
processSubscriptionAdded ( Subscription $subscription )
processSubscriptionRemoved ( Subscription $subscription )
removeStateHandler ( $args )
setReady ( boolean $ready ) Set ready flag

비공개 메소드들

메소드 설명
getStateHandlerRegistrationForSubscription ( Subscription $subscription ) : StateHandlerRegistration | boolean | null
mapNewStateHandlerRegistration ( StateHandlerRegistration $stateHandlerRegistration )
setupStateHandlerRegistration ( SubscriptionGroup $subscriptionGroup ) Called when we need to setup a registration If there is a registration that works - then we set the handler Otherwise, we set it to null

메소드 상세

__construct() 공개 메소드

public __construct ( string $realm, React\EventLoop\LoopInterface $loop = null )
$realm string
$loop React\EventLoop\LoopInterface

addStateHandler() 공개 메소드

public addStateHandler ( $args )
$args

getReady() 공개 메소드

Get ready flag
public getReady ( ) : boolean
리턴 boolean

initModule() 공개 메소드

Gets called when the module is initialized in the router
public initModule ( Thruway\Peer\RouterInterface $router, React\EventLoop\LoopInterface $loop )
$router Thruway\Peer\RouterInterface
$loop React\EventLoop\LoopInterface

onSessionStart() 공개 메소드

Handles session started
public onSessionStart ( ClientSession $session, Thruway\Transport\TransportProviderInterface $transport )
$session Thruway\ClientSession
$transport Thruway\Transport\TransportProviderInterface

processSubscriptionAdded() 공개 메소드

public processSubscriptionAdded ( Subscription $subscription )
$subscription Subscription

processSubscriptionRemoved() 공개 메소드

public processSubscriptionRemoved ( Subscription $subscription )
$subscription Subscription

removeStateHandler() 공개 메소드

public removeStateHandler ( $args )
$args

setReady() 공개 메소드

Set ready flag
public setReady ( boolean $ready )
$ready boolean