diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-04-23 14:35:44 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-04-23 14:35:44 +0200 |
commit | 8bdf825e164469f4a3f22a2d6e92e799c02b9f6e (patch) | |
tree | fe8a036cbb8a6e8f355e814297d791d3d2401448 /vespaclient-core/src/main | |
parent | fc7f77270eaca41d85d7d2499b5ff10f6afaa68e (diff) |
Move the NullFeedMetric too where it is used.
Diffstat (limited to 'vespaclient-core/src/main')
-rw-r--r-- | vespaclient-core/src/main/java/com/yahoo/feedhandler/NullFeedMetric.java | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/vespaclient-core/src/main/java/com/yahoo/feedhandler/NullFeedMetric.java b/vespaclient-core/src/main/java/com/yahoo/feedhandler/NullFeedMetric.java deleted file mode 100644 index 2940c0fcc44..00000000000 --- a/vespaclient-core/src/main/java/com/yahoo/feedhandler/NullFeedMetric.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.feedhandler; - -import com.yahoo.jdisc.Metric; -import java.util.Map; - -/** - * @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a> - * @since 5.1.20 - */ -public final class NullFeedMetric implements Metric { - - public NullFeedMetric(boolean flag) { - if (!flag) { - throw new IllegalArgumentException("must set flag allowing to throw away metrics"); - } - } - - @Override - public void set(String key, Number val, Context ctx) { - } - - @Override - public void add(String key, Number val, Context ctx) { - } - - @Override - public Context createContext(Map<String, ?> properties) { - return NullFeedContext.INSTANCE; - } - - private static class NullFeedContext implements Context { - private static final NullFeedContext INSTANCE = new NullFeedContext(); - } -} |