MongoDataSource

package

Default

Methods

__construct

__construct() 

Convenient method to create a record for a Mongo data source.

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

Arguments

$arg0

string

$arg1

array

$arg2

array

Response

\io\vertx\jphp\servicediscovery\Record

the created record

Convenient method that looks for a Mongo datasource source and provides the configured @see \io\vertx\jphp\ext\mongo\MongoClient. The async result is marked as failed is there are no matching services, or if the lookup fails.

getMongoClient( $arg0,  $arg1,  $arg2,  $arg3 = null) : void
static

param $discovery [ServiceDiscovery] The service discovery instance param $filter [array] The filter, optional param $resultHandler [callable] The result handler getMongoClient($discovery, $filter, $resultHandler)

Convenient method that looks for a Mongo datasource source and provides the configured

see \io\vertx\jphp\ext\mongo\MongoClient.

The async result is marked as failed is there are no matching services, or if the lookup fails.

param $discovery [ServiceDiscovery] The service discovery instance param $filter [callable] The filter param $resultHandler [callable] The result handler getMongoClient($discovery, $filter, $resultHandler)

Convenient method that looks for a Mongo datasource source and provides the configured @see \io\vertx\jphp\ext\mongo\MongoClient. The async result is marked as failed is there are no matching services, or if the lookup fails.

param $discovery [ServiceDiscovery] The service discovery instance param $filter [array] The filter, optional param $consumerConfiguration [array] the consumer configuration param $resultHandler [callable] the result handler getMongoClient($discovery, $filter, $consumerConfiguration, $resultHandler)

Arguments

$arg0

ServiceDiscovery

$arg1

callable | array

$arg2

callable | array

$arg3

callable

Constants

Unknown type.

UNKNOWN
var

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

TYPE

TYPE
var

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