PHP Class Socket_Client, zys

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

Public Properties

Property Type Description
$byref
$failround
$failswitch
$filters
$idempotent
$onError
$onFailswitch
$retry
$simple
$timeout
$uri

Protected Properties

Property Type Description
$async

Public Methods

Method 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 = '' )

Protected Methods

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

Private Methods

Method 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 method

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

__construct() public method

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

__destruct() public method

public __destruct ( )

__get() public method

public __get ( $name )

addFilter() final public method

final public addFilter ( Filter $filter )
$filter Filter

afterFilterHandler() public method

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

beforeFilterHandler() public method

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

close() public method

public close ( )

create() public static method

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

decode() public method

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

getFailround() final public method

final public getFailround ( )

getFilter() final public method

final public getFilter ( )

getId() public method

public getId ( )

getNextFilterHandler() protected method

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

getNextInvokeHandler() protected method

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

getRetry() final public method

final public getRetry ( )

getTimeout() final public method

final public getTimeout ( )

getTopic() public method

*private
public getTopic ( $name, $id )

getUriList() public method

public getUriList ( )

inputFilter() public method

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

invoke() public method

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

invokeHandler() public method

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

isByref() final public method

final public isByref ( )

isFailswitch() final public method

final public isFailswitch ( )

isIdempotent() final public method

final public isIdempotent ( )

isSimple() final public method

final public isSimple ( )

isSubscribed() public method

public isSubscribed ( $name )

registerClientFactory() public static method

public static registerClientFactory ( $scheme, $clientFactory )

removeFilter() final public method

final public removeFilter ( Filter $filter )
$filter Filter

retry() public method

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

sendAndReceive() abstract protected method

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

setByref() final public method

final public setByref ( $byref )

setFailswitch() final public method

final public setFailswitch ( $failswitch )

setFilter() final public method

final public setFilter ( Filter $filter )
$filter Filter

setIdempotent() final public method

final public setIdempotent ( $idempotent )

setRetry() final public method

final public setRetry ( $retry )

setSimple() final public method

final public setSimple ( $simple = true )

setTimeout() final public method

final public setTimeout ( $timeout )

setUri() protected method

protected setUri ( $uri )

setUriList() public method

public setUriList ( $uriList )

subscribe() public method

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

subscribedList() public method

public subscribedList ( )

tryRegisterClientFactory() public static method

public static tryRegisterClientFactory ( $scheme, $clientFactory )

unsubscribe() public method

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

useService() public method

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

wait() protected method

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