@Override
    public void run(){
        while (true) {
            this.ms.execForAbonent(this);
            this.ticksAfterLastLotClosing++;
            if(this.ticksAfterLastLotClosing == CLOSE_TICKETS_EVERY_X_TICKS){
                this.closeLotsByTimeService();
                this.ticksAfterLastLotClosing = 0;
                //System.out.println("Clearing task started");
            }
            try {
                sleep(SLEEP_TIME*1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

    }