Minor changes following review

This commit is contained in:
Alex Theedom 2016-07-31 10:49:28 +01:00
parent 4e9733fae8
commit 0a85d18792
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package com.baeldung.hystrix;
public class RemoteServiceSimulator {
public String checkSomething(final long timeout) throws InterruptedException {
System.out.print(String.format("Waiting %sms. ", timeout));
// to simulate a real world delay in processing.
Thread.sleep(timeout);
return "Done waiting.";
}
}