Parent Directory | Revision Log
Use generics to encapsulate returned value
1 | package dk.thoerup.circuitbreaker; |
2 | |
3 | import java.io.IOException; |
4 | |
5 | import dk.thoerup.circuitbreaker.CircuitInvocation; |
6 | |
7 | public class FailingInvocation implements CircuitInvocation<String> { |
8 | |
9 | public String proceed() throws Exception { |
10 | throw new IOException("Error"); |
11 | } |
12 | |
13 | } |
ViewVC Help | |
Powered by ViewVC 1.1.20 |