mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
kafka use topic and partition cache
This commit is contained in:
parent
7013993c7a
commit
61486a82aa
5 changed files with 244 additions and 31 deletions
|
@ -58,6 +58,9 @@ class SrsSecurity;
|
|||
class ISrsWakable;
|
||||
class SrsCommonMessage;
|
||||
class SrsPacket;
|
||||
#ifdef SRS_AUTO_KAFKA
|
||||
class ISrsKafkaCluster;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* the simple rtmp client stub, use SrsRtmpClient and provides high level APIs.
|
||||
|
@ -135,8 +138,16 @@ private:
|
|||
int publish_normal_timeout;
|
||||
// whether enable the tcp_nodelay.
|
||||
bool tcp_nodelay;
|
||||
// the kafka cluster
|
||||
#ifdef SRS_AUTO_KAFKA
|
||||
ISrsKafkaCluster* kafka;
|
||||
#endif
|
||||
public:
|
||||
#ifdef SRS_AUTO_KAFKA
|
||||
SrsRtmpConn(SrsServer* svr, ISrsKafkaCluster* k, st_netfd_t c);
|
||||
#else
|
||||
SrsRtmpConn(SrsServer* svr, st_netfd_t c);
|
||||
#endif
|
||||
virtual ~SrsRtmpConn();
|
||||
public:
|
||||
virtual void dispose();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue