PHP 클래스 Thruway\Procedure

The Procedure class is used by the Dealer to keep track of registered procedures.
파일 보기 프로젝트 열기: voryx/thruway 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $procedureName ) Constructor
getAllowMultipleRegistrations ( ) : boolean
getCallByRequestId ( integer $requestId ) : Call | boolean Get call by request ID
getDiscloseCaller ( ) : boolean
getInvokeType ( ) : string
getProcedureName ( ) : string
getRegistrationById ( $registrationId ) : boolean | Registration Get registration by ID
getRegistrations ( ) : array
isAllowMultipleRegistrations ( ) : boolean
isDiscloseCaller ( ) : boolean
leave ( Session $session ) process session leave
managerGetRegistrations ( ) todo: This was part of the manager stuff - but may be used by some tests
processCall ( Session $session, Call $call ) : boolean | Call Process call
processQueue ( ) Process the Queue
processRegister ( Session $session, Thruway\Message\RegisterMessage $msg ) : boolean Process register
processUnregister ( Session $session, Thruway\Message\UnregisterMessage $msg ) : boolean process unregister
removeCall ( Call $call ) Remove all references to Call to it can be GCed
setAllowMultipleRegistrations ( boolean $allowMultipleRegistrations )
setDiscloseCaller ( boolean $discloseCaller )
setInvokeType ( $invoketype )

비공개 메소드들

메소드 설명
addRegistration ( Registration $registration, Thruway\Message\RegisterMessage $msg ) : boolean Add registration
getNextFirstRegistration ( )
getNextLastRegistration ( )
getNextRandomRegistration ( )
getNextRoundRobinRegistration ( )
getNextThruwayRegistration ( )
setProcedureName ( string $procedureName )

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $procedureName )
$procedureName string

getAllowMultipleRegistrations() 공개 메소드

getCallByRequestId() 공개 메소드

Get call by request ID
public getCallByRequestId ( integer $requestId ) : Call | boolean
$requestId integer
리턴 Call | boolean

getDiscloseCaller() 공개 메소드

public getDiscloseCaller ( ) : boolean
리턴 boolean

getInvokeType() 공개 메소드

public getInvokeType ( ) : string
리턴 string

getProcedureName() 공개 메소드

public getProcedureName ( ) : string
리턴 string

getRegistrationById() 공개 메소드

Get registration by ID
public getRegistrationById ( $registrationId ) : boolean | Registration
$registrationId
리턴 boolean | Registration

getRegistrations() 공개 메소드

public getRegistrations ( ) : array
리턴 array

isAllowMultipleRegistrations() 공개 메소드

isDiscloseCaller() 공개 메소드

public isDiscloseCaller ( ) : boolean
리턴 boolean

leave() 공개 메소드

process session leave
public leave ( Session $session )
$session Session

managerGetRegistrations() 공개 메소드

todo: This was part of the manager stuff - but may be used by some tests

processCall() 공개 메소드

Process call
public processCall ( Session $session, Call $call ) : boolean | Call
$session Session
$call Call
리턴 boolean | Call | Call

processQueue() 공개 메소드

Process the Queue
public processQueue ( )

processRegister() 공개 메소드

Process register
public processRegister ( Session $session, Thruway\Message\RegisterMessage $msg ) : boolean
$session Session
$msg Thruway\Message\RegisterMessage
리턴 boolean

processUnregister() 공개 메소드

process unregister
public processUnregister ( Session $session, Thruway\Message\UnregisterMessage $msg ) : boolean
$session Session
$msg Thruway\Message\UnregisterMessage
리턴 boolean

removeCall() 공개 메소드

Remove all references to Call to it can be GCed
public removeCall ( Call $call )
$call Call

setAllowMultipleRegistrations() 공개 메소드

public setAllowMultipleRegistrations ( boolean $allowMultipleRegistrations )
$allowMultipleRegistrations boolean

setDiscloseCaller() 공개 메소드

public setDiscloseCaller ( boolean $discloseCaller )
$discloseCaller boolean

setInvokeType() 공개 메소드

public setInvokeType ( $invoketype )