Extends

Methods

mixed

build

( )
Returns:
Type Details
mixed
mixed

withDefaultConsistency

( $consistency )
Parameters:
Name Type Details
$consistency
Returns:
Type Details
mixed
mixed

withDefaultPageSize

( $pageSize )
Parameters:
Name Type Details
$pageSize
Returns:
Type Details
mixed
mixed

withDefaultTimeout

( $timeout )
Parameters:
Name Type Details
$timeout
Returns:
Type Details
mixed
mixed

withContactPoints

( $host )
Parameters:
Name Type Details
$host
Returns:
Type Details
mixed
mixed

withPort

( $port )
Parameters:
Name Type Details
$port
Returns:
Type Details
mixed
mixed

withRoundRobinLoadBalancingPolicy

( )
Returns:
Type Details
mixed
mixed

withDatacenterAwareRoundRobinLoadBalancingPolicy

( $localDatacenter, $hostPerRemoteDatacenter, $useRemoteDatacenterForLocalConsistencies )
Parameters:
Name Type Details
$localDatacenter
$hostPerRemoteDatacenter
$useRemoteDatacenterForLocalConsistencies
Returns:
Type Details
mixed
mixed

withBlackListHosts

( $hosts )
Parameters:
Name Type Details
$hosts
Returns:
Type Details
mixed
mixed

withWhiteListHosts

( $hosts )
Parameters:
Name Type Details
$hosts
Returns:
Type Details
mixed
mixed

withBlackListDCs

( $dcs )
Parameters:
Name Type Details
$dcs
Returns:
Type Details
mixed
mixed

withWhiteListDCs

( $dcs )
Parameters:
Name Type Details
$dcs
Returns:
Type Details
mixed
mixed

withTokenAwareRouting

( $enabled )
Parameters:
Name Type Details
$enabled
Returns:
Type Details
mixed
mixed

withCredentials

( $username, $password )
Parameters:
Name Type Details
$username
$password
Returns:
Type Details
mixed
mixed

withConnectTimeout

( $timeout )
Parameters:
Name Type Details
$timeout
Returns:
Type Details
mixed
mixed

withRequestTimeout

( $timeout )
Parameters:
Name Type Details
$timeout
Returns:
Type Details
mixed
mixed

withSSL

( $options )
Parameters:
Name Type Details
$options
Returns:
Type Details
mixed
mixed

withPersistentSessions

( $enabled )
Parameters:
Name Type Details
$enabled
Returns:
Type Details
mixed
mixed

withProtocolVersion

( $version )
Parameters:
Name Type Details
$version
Returns:
Type Details
mixed
mixed

withIOThreads

( $count )
Parameters:
Name Type Details
$count
Returns:
Type Details
mixed
mixed

withConnectionsPerHost

( $core, $max )
Parameters:
Name Type Details
$core
$max
Returns:
Type Details
mixed
mixed

withReconnectInterval

( $interval )
Parameters:
Name Type Details
$interval
Returns:
Type Details
mixed
mixed

withLatencyAwareRouting

( $enabled )
Parameters:
Name Type Details
$enabled
Returns:
Type Details
mixed
mixed

withTCPNodelay

( $enabled )
Parameters:
Name Type Details
$enabled
Returns:
Type Details
mixed
mixed

withTCPKeepalive

( $delay )
Parameters:
Name Type Details
$delay
Returns:
Type Details
mixed
mixed

withRetryPolicy

( $policy )
Parameters:
Name Type Details
$policy
Returns:
Type Details
mixed
mixed

withTimestampGenerator

( $generator )
Parameters:
Name Type Details
$generator
Returns:
Type Details
mixed
mixed

withSchemaMetadata

( $enabled )
Parameters:
Name Type Details
$enabled
Returns:
Type Details
mixed
Cluster\DefaultBuilder

withHostnameResolution

( $enabled )

Enables/Disables Hostname Resolution.

If enabled the driver will resolve hostnames for IP addresses using reverse IP lookup. This is useful for authentication (Kerberos) or encryption SSL services that require a valid hostname for verification.

param bool $enabled True to use hostname resolution; false otherwise.

Parameters:
Name Type Details
$enabled
Returns:
Type Details
Cluster\DefaultBuilder

self

Cluster\DefaultBuilder

withRandomizedContactPoints

( $enabled )

Enable/Disables Randomized Contact Points

If enabled this allows the driver randomly use contact points in order to evenly spread the load across the cluster and prevent hotspots/load spikes during notifications (e.g. massive schema change).

Note: This setting should only be disabled for debugging and testing.

param bool $enabled True to enable randomized contact points; false otherwise.

Parameters:
Name Type Details
$enabled
Returns:
Type Details
Cluster\DefaultBuilder

self

Cluster\DefaultBuilder

withConnectionHeartbeatInterval

( $interval )

Specify interval in seconds that the driver should wait before attempting to send heartbeat messages and control the amount of time the connection must be idle before sending heartbeat messages. This is useful for preventing intermediate network devices from dropping connections.

param int|float $interval Interval in seconds (0 to disable)

Parameters:
Name Type Details
$interval
Returns:
Type Details
Cluster\DefaultBuilder

self

mixed

withPlaintextAuthenticator

( $username, $password )
Parameters:
Name Type Details
$username
$password
Returns:
Type Details
mixed
mixed

withGssapiAuthenticator

( $service, $principal )
Parameters:
Name Type Details
$service
$principal
Returns:
Type Details
mixed
mixed

withGraphOptions

( $options )
Parameters:
Name Type Details
$options
Returns:
Type Details
mixed