for event bus services (service proxies).
Consumers receive a service proxy to use the service.
package |
Default |
---|
__construct()
createRecord( $arg0, $arg1, $arg2, $arg3 = null) : \io\vertx\jphp\servicediscovery\Record
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)
string
string
string
array
\io\vertx\jphp\servicediscovery\Record
the record
getServiceProxy( $arg0, $arg1, $arg2, $arg3) : mixed
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.
ServiceDiscovery
callable
string
callable
mixed
{@code null} - do not use
getServiceProxyWithJsonFilter( $arg0, $arg1, $arg2, $arg3) : mixed
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.
ServiceDiscovery
array
string
callable
mixed
{@code null} - do not use
UNKNOWN
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
TYPE
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|