/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/notification/SystemOutNotifier.java
ViewVC logotype

Annotation of /miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/notification/SystemOutNotifier.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2569 - (hide annotations) (download)
Tue Jun 9 08:55:10 2015 UTC (8 years, 11 months ago) by torben
File size: 369 byte(s)
Statistics should be added by composition instead of inheritance
1 torben 467 package dk.thoerup.circuitbreaker.notification;
2 torben 450
3 torben 1161 import dk.thoerup.circuitbreaker.CircuitBreaker;
4 torben 2569 import dk.thoerup.circuitbreaker.Event;
5 torben 1161
6 torben 450 public class SystemOutNotifier implements Notifier {
7    
8 torben 1161 public void sendNotification(CircuitBreaker breaker, Event evnt) {
9     System.out.println("Circuitbreaker " + breaker.getName() + " : " + evnt.toString() );
10 torben 450
11     }
12    
13     }

  ViewVC Help
Powered by ViewVC 1.1.20