1 |
package dk.thoerup.circuitbreaker.notification; |
package dk.thoerup.circuitbreaker.notification; |
2 |
|
|
3 |
import dk.thoerup.circuitbreaker.CircuitBreaker; |
import dk.thoerup.circuitbreaker.CircuitBreaker; |
4 |
|
import dk.thoerup.circuitbreaker.Event; |
5 |
|
|
6 |
public interface Notifier { |
public interface Notifier { |
|
public enum Event { |
|
|
BreakerTripped, |
|
|
BreakerAttemptReset, |
|
|
BreakerRetripped, |
|
|
BreakerReset |
|
|
} |
|
7 |
|
|
8 |
public void sendNotification(CircuitBreaker breaker, Event evnt); |
public void sendNotification(CircuitBreaker breaker, Event evnt); |
9 |
} |
} |