35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace JiShe.CollectBus.Kafka.AdminClient
|
|||
|
|
{
|
|||
|
|
public interface IAdminClientService
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Checks the topic asynchronous.
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="topic">The topic.</param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
Task<bool> CheckTopicAsync(string topic);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Creates the topic if not exist asynchronous.
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="topicName">Name of the topic.</param>
|
|||
|
|
/// <param name="factorNum">The factor number.</param>
|
|||
|
|
/// <param name="partitionNum">The partition number.</param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
Task CreateTopicIfNotExistAsync(string topicName, short factorNum, int partitionNum);
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Deletes the topic asynchronous.
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="topicName">Name of the topic.</param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
Task DeleteTopicAsync(List<string> topicName);
|
|||
|
|
}
|
|||
|
|
}
|