class QueryStatusChecker implements AutoCloseable {

    public boolean isQueryRunning()
    {
        // start the checker thread if it hasn't started already
        if (!wasStarted) {
            synchronized (this) {
                if (!wasStarted) {
                    checkerThread.start();
                    wasStarted = true;
                }
            }
        }
        return isRunning.get();
    }

    public  QueryStatusChecker(AmazonAthena athena, ThrottlingInvoker athenaInvoker, String queryId);

}