class BlockStore {

    public synchronized void releaseRange(long from, long to) {
        for (long k = from; k <= to; k++) {
            for (Block b : this.getBlocksByNumber(k)) {
                this.removeBlock(b);
            }
        }
    }

}