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