프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$lastPublicationId | integer | ||
$matcher | Thruway\Subscription\MatcherInterface |
메소드 | 설명 | |
---|---|---|
__construct ( Thruway\Subscription\MatcherInterface $matcher, $uri, $options ) | ||
addSubscription ( |
||
containsSubscriptionId ( $id ) : boolean | ||
getLastPublicationId ( ) : integer | ||
getMatchType ( ) : string | ||
getMatcher ( ) : Thruway\Subscription\MatcherInterface | ||
getStateHandler ( ) : string | ||
getSubscriptions ( ) : array | ||
getUri ( ) : mixed | ||
hasStateHandler ( ) : boolean | ||
leave ( |
||
processPublish ( |
||
processSubscribe ( |
||
processUnsubscribe ( |
||
removeStateHandler ( ) | Remove the handler URI | |
removeSubscription ( |
||
setMatcher ( Thruway\Subscription\MatcherInterface $matcher ) | ||
setStateHandler ( string $handlerUri ) | ||
setSubscriptions ( array $subscriptions ) | ||
setUri ( mixed $uri ) |
메소드 | 설명 | |
---|---|---|
sendEventMessage ( |
Send an Event Message for each subscription |
public __construct ( Thruway\Subscription\MatcherInterface $matcher, $uri, $options ) | ||
$matcher | Thruway\Subscription\MatcherInterface | |
$uri | ||
$options |
public addSubscription ( |
||
$subscription |
public getMatcher ( ) : Thruway\Subscription\MatcherInterface | ||
리턴 | Thruway\Subscription\MatcherInterface |
public processPublish ( |
||
$session | ||
$msg | Thruway\Message\PublishMessage |
public processSubscribe ( |
||
$session | ||
$msg | Thruway\Message\SubscribeMessage | |
리턴 |
public processUnsubscribe ( |
||
$session | ||
$msg | Thruway\Message\UnsubscribeMessage | |
리턴 | boolean | |
public removeSubscription ( |
||
$subscription |
public setMatcher ( Thruway\Subscription\MatcherInterface $matcher ) | ||
$matcher | Thruway\Subscription\MatcherInterface |