feature(pulsar-query): 增加查询 backlog 的方法

This commit is contained in:
2023-05-24 20:16:46 +08:00
parent e3c4d51b15
commit af24551a6b
2 changed files with 23 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ import com.lanyuanxiaoyao.service.configuration.entity.pulsar.PulsarNamespace;
import com.lanyuanxiaoyao.service.configuration.entity.pulsar.PulsarTenant;
import com.lanyuanxiaoyao.service.configuration.entity.pulsar.PulsarTopic;
import org.eclipse.collections.api.list.ImmutableList;
import org.springframework.web.bind.annotation.RequestParam;
/**
* Pulsar
@@ -33,4 +34,7 @@ public interface PulsarService {
@Get("/topics")
ImmutableList<PulsarTopic> topics(@Query("name") String name, @Query("namespace") String namespace);
@Get("/backlog")
Long backlog(@Query("name") String name, @Query("topic") String topic, @RequestParam("subscription") String subscription);
}