public synchronized void enqueue(T thing) {
		while (queue.size() == maxSize) {
				try {
					this.wait();
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}

		queue.addLast(thing);
		notifyAll();
	}