4 |
import java.util.concurrent.ExecutorService; |
import java.util.concurrent.ExecutorService; |
5 |
import java.util.concurrent.Executors; |
import java.util.concurrent.Executors; |
6 |
|
|
7 |
|
import dk.thoerup.circuitbreaker.notification.NotiferHelper; |
8 |
import dk.thoerup.circuitbreaker.notification.Notifier; |
import dk.thoerup.circuitbreaker.notification.Notifier; |
9 |
import dk.thoerup.circuitbreaker.notification.NullNotifier; |
import dk.thoerup.circuitbreaker.notification.NullNotifier; |
10 |
|
|
188 |
this.notifier = notifier; |
this.notifier = notifier; |
189 |
} |
} |
190 |
|
|
191 |
public String getNotifierName() { |
public String getNotifierName() { |
192 |
return notifier.getClass().getName(); |
return NotiferHelper.getName(notifier); |
193 |
} |
} |
194 |
|
|
195 |
public synchronized ExecutorService getExecutor() { |
public synchronized ExecutorService getExecutor() { |