Eclipse Vert.x Cassandra client.
package |
Default |
---|
__construct()
close( $arg0 = null) : $this
close()
Closes this client.
param $closeHandler [callable] handler called when client is closed close($closeHandler)
callable
$this
current Cassandra client instance
createNonShared( $arg0, $arg1 = null) : \io\vertx\jphp\cassandra\CassandraClient
param $vertx [Vertx] createNonShared($vertx)
Create a Cassandra client which maintains its own driver session.
It is not recommended to create several non shared clients in an application. param $vertx [Vertx] the Vert.x instance param $options [CassandraClientOptions | array] the options createNonShared($vertx, $options)
Vertx
array | CassandraClientOptions
\io\vertx\jphp\cassandra\CassandraClient
createShared( $arg0, $arg1 = null, $arg2 = null) : \io\vertx\jphp\cassandra\CassandraClient
param $vertx [Vertx] createShared($vertx)
Like @see \io\vertx\jphp\cassandra\CassandraClient::createShared with default options.
param $vertx [Vertx] param $clientName [string] createShared($vertx, $clientName)
Like @see \io\vertx\jphp\cassandra\CassandraClient::createShared with default client name.
param $vertx [Vertx] param $options [CassandraClientOptions | array] createShared($vertx, $options)
Create a Cassandra client that shares its driver session with any other client having the same name.
param $vertx [Vertx] the Vert.x instance param $clientName [string] the shared client name param $options [CassandraClientOptions | array] the options createShared($vertx, $clientName, $options)
Vertx
string | array | CassandraClientOptions
array | CassandraClientOptions
\io\vertx\jphp\cassandra\CassandraClient
execute( $arg0, $arg1) : $this
string
callable
$this
current Cassandra client instance
isConnected() : boolean
boolean
whether this Cassandra client instance is connected
queryStream( $arg0, $arg1) : $this
string
callable
$this
current Cassandra client instance
DEFAULT_SHARED_CLIENT_NAME
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|