Exemple #1
0
 /**
  * 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;
 }
Exemple #2
0
 public static function clearInstance()
 {
     self::$instance = null;
 }
Exemple #3
0
 /**
  * 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;
 }