PHP Class Socket_Client, zys

Author: Goran Sambolić ([email protected])
Inheritance: extends Socket_A_Socket
Afficher le fichier Open project: qieangel2013/zys Class Usage Examples

Méthodes publiques

Свойство Type Description
$byref
$failround
$failswitch
$filters
$idempotent
$onError
$onFailswitch
$retry
$simple
$timeout
$uri

Protected Properties

Свойство Type Description
$async

Méthodes publiques

Méthode Description
__call ( $name, array $args )
__construct ( $uriList = null, $async = true )
__destruct ( )
__get ( $name )
addFilter ( Filter $filter )
afterFilterHandler ( $request, stdClass $context ) *protected
beforeFilterHandler ( $request, stdClass $context ) *protected
close ( )
create ( $uriList, $async = true )
decode ( $response, array &$args, stdClass $context ) *private
getFailround ( )
getFilter ( )
getId ( )
getRetry ( )
getTimeout ( )
getTopic ( $name, $id ) *private
getUriList ( )
inputFilter ( $response, stdClass $context ) *private
invoke ( $name, array &$args = [], $callback = null, InvokeSettings $settings = null )
invokeHandler ( $name, array &$args, stdClass $context ) *protected
isByref ( )
isFailswitch ( )
isIdempotent ( )
isSimple ( )
isSubscribed ( $name )
registerClientFactory ( $scheme, $clientFactory )
removeFilter ( Filter $filter )
retry ( $request, stdClass $context ) *private
setByref ( $byref )
setFailswitch ( $failswitch )
setFilter ( Filter $filter )
setIdempotent ( $idempotent )
setRetry ( $retry )
setSimple ( $simple = true )
setTimeout ( $timeout )
setUriList ( $uriList )
subscribe ( $name, $id = null, $callback = null, $timeout = null, $failswitch = false ) subscribe($name, $id, $callback, $timeout, $failswitch)
subscribedList ( )
tryRegisterClientFactory ( $scheme, $clientFactory )
unsubscribe ( $name, $id = null, $callback = null ) unsubscribe($name, $id, $callback)
useService ( $uriList = [], $namespace = '' )

Méthodes protégées

Méthode Description
getNextFilterHandler ( Closure $next, $handler )
getNextInvokeHandler ( Closure $next, $handler )
sendAndReceive ( $request, stdClass $context )
setUri ( $uri )
wait ( $interval, $callback )

Private Methods

Méthode Description
asyncBeforeFilterHandler ( $request, stdClass $context )
asyncInvokeHandler ( $name, array &$args, stdClass $context )
autoId ( )
delTopic ( &$topics, $id, $callback )
encode ( $name, array $args, stdClass $context )
failswitch ( )
getContext ( InvokeSettings $settings )
initClientFactories ( )
outputFilter ( $request, stdClass $context )
syncBeforeFilterHandler ( $request, stdClass $context )
syncInvokeHandler ( $name, array &$args, stdClass $context )

Method Details

__call() public méthode

public __call ( $name, array $args )
$args array

__construct() public méthode

public __construct ( $uriList = null, $async = true )

__destruct() public méthode

public __destruct ( )

__get() public méthode

public __get ( $name )

addFilter() final public méthode

final public addFilter ( Filter $filter )
$filter Filter

afterFilterHandler() public méthode

*protected
public afterFilterHandler ( $request, stdClass $context )
$context stdClass

beforeFilterHandler() public méthode

*protected
public beforeFilterHandler ( $request, stdClass $context )
$context stdClass

close() public méthode

public close ( )

create() public static méthode

public static create ( $uriList, $async = true )

decode() public méthode

*private
public decode ( $response, array &$args, stdClass $context )
$args array
$context stdClass

getFailround() final public méthode

final public getFailround ( )

getFilter() final public méthode

final public getFilter ( )

getId() public méthode

public getId ( )

getNextFilterHandler() protected méthode

protected getNextFilterHandler ( Closure $next, $handler )
$next Closure

getNextInvokeHandler() protected méthode

protected getNextInvokeHandler ( Closure $next, $handler )
$next Closure

getRetry() final public méthode

final public getRetry ( )

getTimeout() final public méthode

final public getTimeout ( )

getTopic() public méthode

*private
public getTopic ( $name, $id )

getUriList() public méthode

public getUriList ( )

inputFilter() public méthode

*private
public inputFilter ( $response, stdClass $context )
$context stdClass

invoke() public méthode

public invoke ( $name, array &$args = [], $callback = null, InvokeSettings $settings = null )
$args array
$settings InvokeSettings

invokeHandler() public méthode

*protected
public invokeHandler ( $name, array &$args, stdClass $context )
$args array
$context stdClass

isByref() final public méthode

final public isByref ( )

isFailswitch() final public méthode

final public isFailswitch ( )

isIdempotent() final public méthode

final public isIdempotent ( )

isSimple() final public méthode

final public isSimple ( )

isSubscribed() public méthode

public isSubscribed ( $name )

registerClientFactory() public static méthode

public static registerClientFactory ( $scheme, $clientFactory )

removeFilter() final public méthode

final public removeFilter ( Filter $filter )
$filter Filter

retry() public méthode

*private
public retry ( $request, stdClass $context )
$context stdClass

sendAndReceive() abstract protected méthode

abstract protected sendAndReceive ( $request, stdClass $context )
$context stdClass

setByref() final public méthode

final public setByref ( $byref )

setFailswitch() final public méthode

final public setFailswitch ( $failswitch )

setFilter() final public méthode

final public setFilter ( Filter $filter )
$filter Filter

setIdempotent() final public méthode

final public setIdempotent ( $idempotent )

setRetry() final public méthode

final public setRetry ( $retry )

setSimple() final public méthode

final public setSimple ( $simple = true )

setTimeout() final public méthode

final public setTimeout ( $timeout )

setUri() protected méthode

protected setUri ( $uri )

setUriList() public méthode

public setUriList ( $uriList )

subscribe() public méthode

subscribe($name, $id, $callback, $timeout, $failswitch)
public subscribe ( $name, $id = null, $callback = null, $timeout = null, $failswitch = false )

subscribedList() public méthode

public subscribedList ( )

tryRegisterClientFactory() public static méthode

public static tryRegisterClientFactory ( $scheme, $clientFactory )

unsubscribe() public méthode

unsubscribe($name, $id, $callback)
public unsubscribe ( $name, $id = null, $callback = null )

useService() public méthode

public useService ( $uriList = [], $namespace = '' )

wait() protected méthode

protected wait ( $interval, $callback )

Property Details

$async protected_oe property

protected $async

$byref public_oe property

public $byref

$failround public_oe property

public $failround

$failswitch public_oe property

public $failswitch

$filters public_oe property

public $filters

$idempotent public_oe property

public $idempotent

$onError public_oe property

public $onError

$onFailswitch public_oe property

public $onFailswitch

$retry public_oe property

public $retry

$simple public_oe property

public $simple

$timeout public_oe property

public $timeout

$uri public_oe property

public $uri