Skip to content

Commit

Permalink
replace Object.wait calls with Thread.sleep calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmartino committed Nov 15, 2017
1 parent 96ee748 commit 1877752
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.net.URI;

public class HttpArkIdService implements IdService {
Expand Down Expand Up @@ -131,7 +132,7 @@ private synchronized String getEzid() throws Exception {
//OR THE EZID SERVER BEING BUSY SERVICING ANOTHER REQUEST.
if(shouldRetry) {
try {
wait(RETRY_WAIT_TIME);
Thread.sleep(RETRY_WAIT_TIME);
} catch (InterruptedException ie) {
log.error("Wait interrupted in retry loop", ie);
}
Expand Down Expand Up @@ -186,7 +187,7 @@ private void getMoreEzids() {
//OR THE EZID SERVER BEING BUSY SERVICING ANOTHER REQUEST.
if(shouldRetry){
try{
wait(RETRY_WAIT_TIME);
Thread.sleep(RETRY_WAIT_TIME);
}catch(InterruptedException ie){
log.error("Wait interrupted in retry loop", ie);
}
Expand Down

0 comments on commit 1877752

Please sign in to comment.