CassandraClient

Eclipse Vert.x Cassandra client.

package

Default

Methods

__construct

__construct() 

Closes this client.

close( $arg0 = null) : $this

close()

Closes this client.

param $closeHandler [callable] handler called when client is closed close($closeHandler)

Arguments

$arg0

callable

Response

$this

current Cassandra client instance

Like @see \io\vertx\jphp\cassandra\CassandraClient::createNonShared with default options.

createNonShared( $arg0,  $arg1 = null) : \io\vertx\jphp\cassandra\CassandraClient
static

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)

Arguments

$arg0

Vertx

$arg1

array | CassandraClientOptions

Response

\io\vertx\jphp\cassandra\CassandraClient

Like @see \io\vertx\jphp\cassandra\CassandraClient::createShared with default options and client name.

createShared( $arg0,  $arg1 = null,  $arg2 = null) : \io\vertx\jphp\cassandra\CassandraClient
static

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)

Arguments

$arg0

Vertx

$arg1

string | array | CassandraClientOptions

$arg2

array | CassandraClientOptions

Response

\io\vertx\jphp\cassandra\CassandraClient

Execute the query and provide a handler for consuming results.

execute( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

current Cassandra client instance

isConnected

isConnected() : boolean

Response

boolean

whether this Cassandra client instance is connected

Executes the given SQL <code>SELECT</code> statement which returns the results of the query as a read stream.

queryStream( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

current Cassandra client instance

Constants

The default shared client name.

DEFAULT_SHARED_CLIENT_NAME
var

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