class DefaultBuilder
Extends
Methods
mixed build
( )mixed withDefaultConsistency
( $consistency )mixed withDefaultPageSize
( $pageSize )mixed withDefaultTimeout
( $timeout )mixed withContactPoints
( $host )mixed withPort
( $port )mixed withRoundRobinLoadBalancingPolicy
( )mixed withDatacenterAwareRoundRobinLoadBalancingPolicy
( $localDatacenter, $hostPerRemoteDatacenter, $useRemoteDatacenterForLocalConsistencies )mixed withBlackListHosts
( $hosts )mixed withWhiteListHosts
( $hosts )mixed withBlackListDCs
( $dcs )mixed withWhiteListDCs
( $dcs )mixed withTokenAwareRouting
( $enabled )mixed withCredentials
( $username, $password )mixed withConnectTimeout
( $timeout )mixed withRequestTimeout
( $timeout )mixed withSSL
( $options )mixed withPersistentSessions
( $enabled )mixed withProtocolVersion
( $version )mixed withIOThreads
( $count )mixed withConnectionsPerHost
( $core, $max )mixed withReconnectInterval
( $interval )mixed withLatencyAwareRouting
( $enabled )mixed withTCPNodelay
( $enabled )mixed withTCPKeepalive
( $delay )mixed withRetryPolicy
( $policy )mixed withTimestampGenerator
( $generator )mixed withSchemaMetadata
( $enabled )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.
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.
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)
mixed withPlaintextAuthenticator
( $username, $password )mixed withGssapiAuthenticator
( $service, $principal )mixed