package com.lanyuanxiaoyao.service.forest.service;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Var;
import com.lanyuanxiaoyao.service.common.entity.compaction.ScheduleJob;
import com.lanyuanxiaoyao.service.configuration.entity.queue.QueueItem;
import org.eclipse.collections.api.list.ImmutableList;

/**
 * 队列查询
 *
 * @author lanyuanxiaoyao
 * @date 2023-05-07
 */
@BaseRequest(baseURL = "http://service-queue/deque")
public interface DequeService {
    @Get("/names")
    ImmutableList<String> names();

    @Get("/all/{name}")
    ImmutableList<QueueItem<ScheduleJob>> all(@Var("name") String name);
}
