杨总惠通宝
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
htb_backend/vendor/open-smf/connection-pool/src/ConnectionPoolInterface.php

33 lines
662 B

12 months ago
<?php
namespace Smf\ConnectionPool;
interface ConnectionPoolInterface
{
/**
* Initialize the connection pool
* @return bool
*/
public function init(): bool;
/**
* Return a connection to the connection pool
* @param mixed $connection
* @return bool
*/
public function return($connection): bool;
/**
* Borrow a connection to the connection pool
* @return mixed
* @throws BorrowConnectionTimeoutException
*/
public function borrow();
/**
* Close the connection pool, release the resource of all connections
* @return bool
*/
public function close(): bool;
}