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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3212 - (show annotations) (download)
Thu Dec 28 09:34:47 2017 UTC (6 years, 4 months ago) by torben
File size: 372 byte(s)
Use generics to encapsulate returned value
1 package dk.thoerup.circuitbreaker.notification;
2
3 import dk.thoerup.circuitbreaker.CircuitBreaker;
4 import dk.thoerup.circuitbreaker.Event;
5
6 public class SystemOutNotifier implements Notifier {
7
8 public void sendNotification(CircuitBreaker<?> breaker, Event evnt) {
9 System.out.println("Circuitbreaker " + breaker.getName() + " : " + evnt.toString() );
10
11 }
12
13 }

  ViewVC Help
Powered by ViewVC 1.1.20