PHP Class Thruway\Subscription\Subscription

Inheritance: use trait Thruway\Message\Traits\OptionsTrait
Afficher le fichier Open project: voryx/thruway Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $uri, Session $session, mixed $options = null ) Constructor
createSubscriptionFromSubscribeMessage ( Session $session, Thruway\Message\SubscribeMessage $msg ) : Subscription Create Subscription from SubscribeMessage
getId ( ) : mixed Get subscription ID
getSession ( ) : Session Get session
getSubscriptionGroup ( ) : SubscriptionGroup
getUri ( ) : string Get URI
isDisclosePublisher ( ) : boolean
isPausedForState ( ) : boolean
pauseForState ( ) Pauses all non-state building event messages
sendEventMessage ( Thruway\Message\EventMessage $msg )
setDisclosePublisher ( boolean $disclosePublisher )
setSession ( Session $session ) Set session
setSubscriptionGroup ( SubscriptionGroup $subscriptionGroup )
setUri ( string $uri ) Set URI
unPauseForState ( $lastPublicationId = null )

Private Methods

Méthode Description
processStateQueue ( null $lastPublicationId = null )

Method Details

__construct() public méthode

Constructor
public __construct ( string $uri, Session $session, mixed $options = null )
$uri string
$session Thruway\Session
$options mixed

createSubscriptionFromSubscribeMessage() public static méthode

Create Subscription from SubscribeMessage
public static createSubscriptionFromSubscribeMessage ( Session $session, Thruway\Message\SubscribeMessage $msg ) : Subscription
$session Thruway\Session
$msg Thruway\Message\SubscribeMessage
Résultat Subscription

getId() public méthode

Get subscription ID
public getId ( ) : mixed
Résultat mixed

getSession() public méthode

Get session
public getSession ( ) : Session
Résultat Thruway\Session

getSubscriptionGroup() public méthode

public getSubscriptionGroup ( ) : SubscriptionGroup
Résultat SubscriptionGroup

getUri() public méthode

Get URI
public getUri ( ) : string
Résultat string

isDisclosePublisher() public méthode

public isDisclosePublisher ( ) : boolean
Résultat boolean

isPausedForState() public méthode

public isPausedForState ( ) : boolean
Résultat boolean

pauseForState() public méthode

Pauses all non-state building event messages
public pauseForState ( )

sendEventMessage() public méthode

public sendEventMessage ( Thruway\Message\EventMessage $msg )
$msg Thruway\Message\EventMessage

setDisclosePublisher() public méthode

public setDisclosePublisher ( boolean $disclosePublisher )
$disclosePublisher boolean

setSession() public méthode

Set session
public setSession ( Session $session )
$session Thruway\Session

setSubscriptionGroup() public méthode

public setSubscriptionGroup ( SubscriptionGroup $subscriptionGroup )
$subscriptionGroup SubscriptionGroup

setUri() public méthode

Set URI
public setUri ( string $uri )
$uri string

unPauseForState() public méthode

public unPauseForState ( $lastPublicationId = null )
$lastPublicationId