public void acquireMutex() throws IllegalAcornStateException {
try {
while(!mutex.tryAcquire(3, TimeUnit.SECONDS)) {
- System.err.println("Mutex is taking a long time to acquire - owner is " + mutexOwner);
+ LOGGER.info("Mutex is taking a long time to acquire - owner is " + mutexOwner);
}
if(VERIFY)
mutexOwner = Thread.currentThread();
public void shutdown() {
if (GraphClientImpl2.DEBUG)
- System.err.println("Shutting down LRU writers " + writers);
+ LOGGER.info("Shutting down LRU writers " + writers);
writers.shutdown();
try {
writers.awaitTermination(60, TimeUnit.SECONDS);
}
});
if (GraphClientImpl2.DEBUG)
- System.err.println("Resuming LRU writers " + writers);
+ LOGGER.info("Resuming LRU writers " + writers);
}
/*