delete topic

This commit is contained in:
许晓东
2021-09-09 20:26:42 +08:00
parent 966f22da44
commit 7b726f5411
8 changed files with 50 additions and 8 deletions

View File

@@ -17,6 +17,8 @@ import org.apache.kafka.common.utils.Time
* */
class KafkaConsole(config: KafkaConfig) {
protected val timeoutMs: Int = 3000
protected def withAdminClient(f: Admin => Any): Any = {
val admin = createAdminClient()