PHP Class Thruway\Subscription\StateHandlerRegistration

Inheritance: use trait Thruway\Message\Traits\OptionsTrait, use trait Thruway\Message\Traits\OptionsMatchTypeTrait
显示文件 Open project: voryx/thruway Class Usage Examples

Protected Properties

Property Type Description
$clientSession Thruway\ClientSession
$matcher Thruway\Subscription\MatcherInterface
$procedureName string
$uri string

Public Methods

Method Description
__construct ( $clientSession, $procedureName, $uri, $options, Thruway\Subscription\MatcherInterface $matcher )
getClientSession ( ) : ClientSession
getMatcher ( ) : Thruway\Subscription\MatcherInterface
getProcedureName ( ) : string
getUri ( ) : string
handlesStateFor ( SubscriptionGroup $subscriptionGroup )
publishState ( Subscription $subscription ) : mixed Gets and published the topics state to this subscription
setClientSession ( ClientSession $clientSession )
setMatcher ( Thruway\Subscription\MatcherInterface $matcher )
setProcedureName ( string $procedureName )
setUri ( string $uri )

Method Details

__construct() public method

public __construct ( $clientSession, $procedureName, $uri, $options, Thruway\Subscription\MatcherInterface $matcher )
$matcher Thruway\Subscription\MatcherInterface

getClientSession() public method

public getClientSession ( ) : ClientSession
return Thruway\ClientSession

getMatcher() public method

public getMatcher ( ) : Thruway\Subscription\MatcherInterface
return Thruway\Subscription\MatcherInterface

getProcedureName() public method

public getProcedureName ( ) : string
return string

getUri() public method

public getUri ( ) : string
return string

handlesStateFor() public method

public handlesStateFor ( SubscriptionGroup $subscriptionGroup )
$subscriptionGroup SubscriptionGroup

publishState() public method

Gets and published the topics state to this subscription
public publishState ( Subscription $subscription ) : mixed
$subscription Subscription
return mixed

setClientSession() public method

public setClientSession ( ClientSession $clientSession )
$clientSession Thruway\ClientSession

setMatcher() public method

public setMatcher ( Thruway\Subscription\MatcherInterface $matcher )
$matcher Thruway\Subscription\MatcherInterface

setProcedureName() public method

public setProcedureName ( string $procedureName )
$procedureName string

setUri() public method

public setUri ( string $uri )
$uri string

Property Details

$clientSession protected_oe property

protected ClientSession,Thruway $clientSession
return Thruway\ClientSession

$matcher protected_oe property

protected MatcherInterface,Thruway\Subscription $matcher
return Thruway\Subscription\MatcherInterface

$procedureName protected_oe property

protected string $procedureName
return string

$uri protected_oe property

protected string $uri
return string