/** * set send messages * * @access public * @param $hostList * @param $timeout * @param null $kafkaHostList * @return Produce */ public static function getInstance($hostList, $timeout, $kafkaHostList = null) { if (is_null(self::$instance)) { self::$instance = new self($hostList, $timeout, $kafkaHostList); } return self::$instance; }
public static function clearInstance() { self::$instance = null; }
/** * set send messages * * @access public * @return void */ public static function getInstance($hostList, $timeout, $base_path = '') { if (is_null(self::$instance)) { self::$instance = new self($hostList, $timeout, $base_path); } return self::$instance; }