1 |
package dk.thoerup.circuitbreaker.notification; |
package dk.thoerup.circuitbreaker.notification; |
2 |
|
|
3 |
|
import dk.thoerup.circuitbreaker.CircuitBreaker; |
4 |
|
|
5 |
public class SystemOutNotifier implements Notifier { |
public class SystemOutNotifier implements Notifier { |
6 |
|
|
7 |
public void sendNotification(String breakerName, Event evnt) { |
public void sendNotification(CircuitBreaker breaker, Event evnt) { |
8 |
System.out.println("Circuitbreaker " + breakerName + " : " + evnt.toString() ); |
System.out.println("Circuitbreaker " + breaker.getName() + " : " + evnt.toString() ); |
9 |
|
|
10 |
} |
} |
11 |
|
|