Package org.apache.pekko.cluster.metrics
Class Metric$
java.lang.Object
org.apache.pekko.cluster.metrics.Metric$
- All Implemented Interfaces:
Serializable,MetricNumericConverter
Factory for creating valid Metric instances.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscala.Option<Metric>Creates a new Metric instance if the value is valid, otherwise None is returned.scala.Option<Metric>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<Object> decayFactor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.cluster.metrics.MetricNumericConverter
convertNumber, defined
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Metric$
public Metric$()
-
-
Method Details
-
create
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(String name, scala.util.Try<Number> value, scala.Option<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
-
apply
-
unapply
-