package scheduleTest;
import ;
import ;
public class TaskConsumer implements Runnable {
Jedis jedis = new Jedis("120.55.195.177",6379);
public void run() {
Random random = new Random();
while(true){
String taskid = ("task-queue", "tmp-queue");
try {
(1000);
} catch (InterruptedException e) {
();
}
if((13) % 7 == 0){
("tmp-queue", "task-queue");
(taskid + "处理失败,被弹回任务队列");
} else {
("tmp-queue");
(taskid+"处理成功,被清除");
}
}
}
}