feature(pulsar-query): 增加查询 backlog 的方法
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user