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

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

package com.github.ltsopensource.queue;


import com.github.ltsopensource.queue.domain.JobFeedbackPo;

import java.util.List;

/**
 * 这个是用来保存反馈客户端失败的任务结果队列
 *
 * @author Robert HG ([email protected]) on 3/27/15.
 */
public interface JobFeedbackQueue {

    /**
     * 创建一个队列
     */
    boolean createQueue(String jobClientNodeGroup);

    /**
     * 删除
     */
    boolean removeQueue(String jobClientNodeGroup);

    /**
     * 入队列
     */
    public boolean add(List jobFeedbackPos);

    /**
     * 出队列
     */
    public boolean remove(String jobClientNodeGroup, String id);

    /**
     * 队列的大小
     */
    public long getCount(String jobClientNodeGroup);

    /**
     * 取top几个
     */
    public List fetchTop(String jobClientNodeGroup, int top);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy