All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.rocketmq.starter.ConsumerOperator Maven / Gradle / Ivy

The newest version!
package org.rocketmq.starter;


import org.rocketmq.starter.core.consumer.OperationResult;

/**
 *
 * 消费者容器操作接口
 *
 * @author He Jialin
 */
public interface ConsumerOperator {


    /**
     * 根据topic暂停某个消费者的消费
     * @param topic 消费者的topic
     * @return 操作结果
     */
    OperationResult suspendConsumer(String topic);

    /**
     * 根据topic恢复某个消费者的消费
     * @param topic 消费者topic
     * @return 操作结果
     */
    OperationResult resumeConsumer(String topic);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy