/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/notification/CompositeNotifier.java |
Parent Directory
|
Revision Log
|
Patch
CircuitBreaker/src/dk/thoerup/circuitbreaker/notification/CompositeNotifier.java revision 1099 by torben, Wed Sep 22 07:38:04 2010 UTC | miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/notification/CompositeNotifier.java revision 2449 by torben, Fri Mar 20 08:58:46 2015 UTC | |
---|---|---|
# | Line 3 package dk.thoerup.circuitbreaker.notifi | Line 3 package dk.thoerup.circuitbreaker.notifi |
3 | import java.util.ArrayList; | import java.util.ArrayList; |
4 | import java.util.List; | import java.util.List; |
5 | ||
6 | import dk.thoerup.circuitbreaker.CircuitBreaker; | |
7 | ||
8 | public class CompositeNotifier implements Notifier { | public class CompositeNotifier implements Notifier { |
9 | ||
10 | List<Notifier> children = new ArrayList<Notifier>(); | List<Notifier> children = new ArrayList<Notifier>(); |
# | Line 11 public class CompositeNotifier implement | Line 13 public class CompositeNotifier implement |
13 | children.add(notif); | children.add(notif); |
14 | } | } |
15 | ||
16 | public void sendNotification(String breakerName, Event evnt) { | public void sendNotification(CircuitBreaker breaker, Event evnt) { |
17 | for (Notifier notif : children) { | for (Notifier notif : children) { |
18 | notif.sendNotification(breakerName, evnt); | notif.sendNotification(breaker, evnt); |
19 | } | } |
20 | } | } |
21 |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |