Skip to content

Commit 0a85d18

Browse files
committed
Minor changes following review
1 parent 4e9733f commit 0a85d18

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.baeldung.hystrix;
2+
3+
4+
public class RemoteServiceSimulator {
5+
6+
public String checkSomething(final long timeout) throws InterruptedException {
7+
8+
System.out.print(String.format("Waiting %sms. ", timeout));
9+
10+
// to simulate a real world delay in processing.
11+
Thread.sleep(timeout);
12+
13+
return "Done waiting.";
14+
}
15+
}

0 commit comments

Comments
 (0)