/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/notification/Notifier.java |
Parent Directory | Revision Log
If the Notifier gets a reference to the CircuitBreaker itself instead of the circuitbreaker's name then the same notifier instance can easily be shared across several circuitbreakers
1 | torben | 467 | package dk.thoerup.circuitbreaker.notification; |
2 | torben | 409 | |
3 | torben | 1161 | import dk.thoerup.circuitbreaker.CircuitBreaker; |
4 | |||
5 | torben | 409 | public interface Notifier { |
6 | public enum Event { | ||
7 | BreakerTripped, | ||
8 | BreakerAttemptReset, | ||
9 | torben | 864 | BreakerRetripped, |
10 | torben | 409 | BreakerReset |
11 | } | ||
12 | |||
13 | torben | 1161 | public void sendNotification(CircuitBreaker breaker, Event evnt); |
14 | torben | 409 | } |
ViewVC Help | |
Powered by ViewVC 1.1.20 |