Package akka.cluster.metrics
Class Metric$
- java.lang.Object
-
- akka.cluster.metrics.Metric$
-
- All Implemented Interfaces:
MetricNumericConverter
,java.io.Serializable
public class Metric$ extends java.lang.Object implements MetricNumericConverter, java.io.Serializable
Factory for creating valid Metric instances.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Metric$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metric
apply(java.lang.String name, java.lang.Number value, scala.Option<EWMA> average)
scala.Option<Metric>
create(java.lang.String name, java.lang.Number value, scala.Option<java.lang.Object> decayFactor)
Creates a new Metric instance if the value is valid, otherwise None is returned.scala.Option<Metric>
create(java.lang.String name, scala.util.Try<java.lang.Number> value, scala.Option<java.lang.Object> decayFactor)
Creates a new Metric instance if the Try is successful and the value is valid, otherwise None is returned.scala.Option<EWMA>
createEWMA(double value, scala.Option<java.lang.Object> decayFactor)
scala.Option<scala.Tuple3<java.lang.String,java.lang.Number,scala.Option<EWMA>>>
unapply(Metric x$0)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.cluster.metrics.MetricNumericConverter
convertNumber, defined
-
-
-
-
Field Detail
-
MODULE$
public static final Metric$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
create
public scala.Option<Metric> create(java.lang.String name, java.lang.Number value, scala.Option<java.lang.Object> decayFactor)
Creates a new Metric instance if the value is valid, otherwise None is returned. Invalid numeric values are negative and NaN/Infinite.
-
create
public scala.Option<Metric> create(java.lang.String name, scala.util.Try<java.lang.Number> value, scala.Option<java.lang.Object> decayFactor)
Creates a new Metric instance if the Try is successful and the value is valid, otherwise None is returned. Invalid numeric values are negative and NaN/Infinite.
-
createEWMA
public scala.Option<EWMA> createEWMA(double value, scala.Option<java.lang.Object> decayFactor)
-
apply
public Metric apply(java.lang.String name, java.lang.Number value, scala.Option<EWMA> average)
-
-