Cassandra\Session::close PHP Method

close() public method

Closes current session and all of its connections.
public close ( float | null $timeout = null ) : void
$timeout float | null Timeout to wait for closure in seconds
return void
    public function close($timeout = null);

Usage Example

Beispiel #1
0
 /**
  * Closes actual connection session to the cluster
  * @return  bool
  */
 public function close()
 {
     if ($this->_session) {
         $this->_session->close();
         $this->_session = null;
     }
     return true;
 }