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

com.github.ltsopensource.queue.NodeGroupStore Maven / Gradle / Ivy

package com.github.ltsopensource.queue;

import com.github.ltsopensource.core.cluster.NodeType;
import com.github.ltsopensource.core.domain.NodeGroupGetReq;
import com.github.ltsopensource.queue.domain.NodeGroupPo;
import com.github.ltsopensource.admin.response.PaginationRsp;

import java.util.List;

/**
 * @author Robert HG ([email protected]) on 6/7/15.
 */
public interface NodeGroupStore {

    /**
     * 添加 NodeGroup
     */
    void addNodeGroup(NodeType nodeType, String name);

    /**
     * 移除 NodeGroup
     */
    void removeNodeGroup(NodeType nodeType, String name);

    /**
     * 得到某个nodeType 的所有 nodeGroup
     */
    List getNodeGroup(NodeType nodeType);

    /**
     * 分页查询
     */
    PaginationRsp getNodeGroup(NodeGroupGetReq request);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy