Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #5 from rajuGT/metrics_publish_predicate_enhancement
Browse files Browse the repository at this point in the history
MetricsPublishPredicate predicate input should be of type Configuration.
  • Loading branch information
zapodot committed Aug 17, 2017
2 parents 58182b0 + b0481d3 commit 24134e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/zapodot/hystrix/bundle/HystrixBundle.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ public void run(final T configuration, final Environment environment) {
* Predicate to be used for deciding whether Hystrix Metrics should be published through DropWizard or not
*/
@FunctionalInterface
public interface MetricsPublishPredicate<T> {
public interface MetricsPublishPredicate<V extends Configuration> {

/**
* Is publishing enabled?
* @return true to enable, false to disable
*/
boolean enabled(T configuration);
boolean enabled(V configuration);
}

/**
Expand Down

0 comments on commit 24134e2

Please sign in to comment.