EventBusService

for event bus services (service proxies).

Consumers receive a service proxy to use the service.

package

Default

Methods

__construct

__construct() 

Creates a record based on the parameters.

createRecord( $arg0,  $arg1,  $arg2,  $arg3 = null) : \io\vertx\jphp\servicediscovery\Record
static

param $name [string] the service name param $address [string] the address param $classname [string] the payload class createRecord($name, $address, $classname)

Sugar method to creates a record for this type.

The java interface is added to the metadata in the `service.interface` key. param $name [string] the name of the service. param $address [string] the event bus address on which the service available param $itf [string] the Java interface (name) param $metadata [array] the metadata createRecord($name, $address, $itf, $metadata)

Arguments

$arg0

string

$arg1

string

$arg2

string

$arg3

array

Response

\io\vertx\jphp\servicediscovery\Record

the record

Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).

getServiceProxy( $arg0,  $arg1,  $arg2,  $arg3) : mixed
static

This is a convenient method to avoid explicit lookup and then retrieval of the service. This method requires to have the clientClass set with the expected set of client. This is important for usages not using Java so you can pass the expected type.

Arguments

$arg0

ServiceDiscovery

$arg1

callable

$arg2

string

$arg3

callable

Response

mixed

{@code null} - do not use

Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).

getServiceProxyWithJsonFilter( $arg0,  $arg1,  $arg2,  $arg3) : mixed
static

This is a convenient method to avoid explicit lookup and then retrieval of the service. This method requires to have the clientClass set with the expected set of client. This is important for usages not using Java so you can pass the expected type.

Arguments

$arg0

ServiceDiscovery

$arg1

array

$arg2

string

$arg3

callable

Response

mixed

{@code null} - do not use

Constants

Unknown type.

UNKNOWN
var

php文件只是为了写代码方便,常量的实际值请参考原java文件

Name of the type.

TYPE
var

php文件只是为了写代码方便,常量的实际值请参考原java文件