private synchronized void stopProduction() { if (awaitingFetch) { ImageFetcher.remove(this); awaitingFetch = false; } }
private synchronized void startProduction() { if (!awaitingFetch) { ImageFetcher.add(this); awaitingFetch = true; } }