PHP 클래스 Thruway\Subscription\SubscriptionGroup

This groups subscriptions that have exactly the same matching criteria.
상속: use trait Thruway\Message\Traits\OptionsTrait, use trait Thruway\Message\Traits\OptionsMatchTypeTrait
파일 보기 프로젝트 열기: voryx/thruway 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$lastPublicationId integer
$matcher Thruway\Subscription\MatcherInterface

공개 메소드들

메소드 설명
__construct ( Thruway\Subscription\MatcherInterface $matcher, $uri, $options )
addSubscription ( Subscription $subscription )
containsSubscriptionId ( $id ) : boolean
getLastPublicationId ( ) : integer
getMatchType ( ) : string
getMatcher ( ) : Thruway\Subscription\MatcherInterface
getStateHandler ( ) : string
getSubscriptions ( ) : array
getUri ( ) : mixed
hasStateHandler ( ) : boolean
leave ( Session $session )
processPublish ( Session $session, Thruway\Message\PublishMessage $msg )
processSubscribe ( Session $session, Thruway\Message\SubscribeMessage $msg ) : Subscription
processUnsubscribe ( Session $session, Thruway\Message\UnsubscribeMessage $msg ) : boolean | Subscription
removeStateHandler ( ) Remove the handler URI
removeSubscription ( Subscription $subscription )
setMatcher ( Thruway\Subscription\MatcherInterface $matcher )
setStateHandler ( string $handlerUri )
setSubscriptions ( array $subscriptions )
setUri ( mixed $uri )

비공개 메소드들

메소드 설명
sendEventMessage ( Session $session, Thruway\Message\PublishMessage $msg, Subscription $subscription ) Send an Event Message for each subscription

메소드 상세

__construct() 공개 메소드

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

addSubscription() 공개 메소드

public addSubscription ( Subscription $subscription )
$subscription Subscription

containsSubscriptionId() 공개 메소드

public containsSubscriptionId ( $id ) : boolean
$id
리턴 boolean

getLastPublicationId() 공개 메소드

public getLastPublicationId ( ) : integer
리턴 integer

getMatchType() 공개 메소드

public getMatchType ( ) : string
리턴 string

getMatcher() 공개 메소드

public getMatcher ( ) : Thruway\Subscription\MatcherInterface
리턴 Thruway\Subscription\MatcherInterface

getStateHandler() 공개 메소드

public getStateHandler ( ) : string
리턴 string

getSubscriptions() 공개 메소드

public getSubscriptions ( ) : array
리턴 array

getUri() 공개 메소드

public getUri ( ) : mixed
리턴 mixed

hasStateHandler() 공개 메소드

public hasStateHandler ( ) : boolean
리턴 boolean

leave() 공개 메소드

public leave ( Session $session )
$session Thruway\Session

processPublish() 공개 메소드

public processPublish ( Session $session, Thruway\Message\PublishMessage $msg )
$session Thruway\Session
$msg Thruway\Message\PublishMessage

processSubscribe() 공개 메소드

public processSubscribe ( Session $session, Thruway\Message\SubscribeMessage $msg ) : Subscription
$session Thruway\Session
$msg Thruway\Message\SubscribeMessage
리턴 Subscription

processUnsubscribe() 공개 메소드

public processUnsubscribe ( Session $session, Thruway\Message\UnsubscribeMessage $msg ) : boolean | Subscription
$session Thruway\Session
$msg Thruway\Message\UnsubscribeMessage
리턴 boolean | Subscription

removeStateHandler() 공개 메소드

Remove the handler URI
public removeStateHandler ( )

removeSubscription() 공개 메소드

public removeSubscription ( Subscription $subscription )
$subscription Subscription

setMatcher() 공개 메소드

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

setStateHandler() 공개 메소드

public setStateHandler ( string $handlerUri )
$handlerUri string

setSubscriptions() 공개 메소드

public setSubscriptions ( array $subscriptions )
$subscriptions array

setUri() 공개 메소드

public setUri ( mixed $uri )
$uri mixed

프로퍼티 상세

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

protected int $lastPublicationId
리턴 integer

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

protected MatcherInterface,Thruway\Subscription $matcher
리턴 Thruway\Subscription\MatcherInterface