private void CheckClosed() { if(this.closed) { throw new IllegalStateException("The Consumer is closed"); } }