package com.github.k0kubun.github_ranking.config;

import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;

import java.util.Map;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

import javax.sql.DataSource;

// Its queue may be configurable in the future. So it's placed here but currently just a group of queues.
public class QueueConfig
{
    private final BlockingQueue<Boolean> userRankingQueue;
    private final BlockingQueue<Boolean> orgRankingQueue;
    private final BlockingQueue<Boolean> repoRankingQueue;
    private final BlockingQueue<Boolean> newUserQueue;
    private final BlockingQueue<Boolean> searchedUserQueue;

    public QueueConfig()
    {
        userRankingQueue = new LinkedBlockingQueue<>();
        orgRankingQueue = new LinkedBlockingQueue<>();
        repoRankingQueue = new LinkedBlockingQueue<>();
        newUserQueue = new LinkedBlockingQueue<>();
        searchedUserQueue = new LinkedBlockingQueue<>();
    }

    public BlockingQueue<Boolean> getUserRankingQueue()
    {
        return userRankingQueue;
    }

    public BlockingQueue<Boolean> getOrgRankingQueue()
    {
        return orgRankingQueue;
    }

    public BlockingQueue<Boolean> getRepoRankingQueue()
    {
        return repoRankingQueue;
    }

    public BlockingQueue<Boolean> getNewUserQueue()
    {
        return newUserQueue;
    }

    public BlockingQueue<Boolean> getSearchedUserQueue()
    {
        return searchedUserQueue;
    }
}

@@ -48,91 +48,8 @@
 g;%0A%0A
-import com.zaxxer.hikari.HikariConfig;%0Aimport com.zaxxer.hikari.HikariDataSource;%0A%0A
 impo

Remove obsoleted reference