This commit is contained in:
as2252258@163.com
2021-04-11 19:02:42 +08:00
parent 42ce1015c2
commit 858e4b2ba5
4 changed files with 28 additions and 1 deletions
+10
View File
@@ -31,6 +31,16 @@ class TaskContainer extends BaseObject
}
/**
* @param $topic
* @return mixed|null
*/
public function getConsumer(string $topic)
{
return $this->_topics[$topic] ?? null;
}
/**
* @param $topic
* @param \Kafka\Struct $struct