akka.cluster
Class Metric$
java.lang.Object
akka.cluster.Metric$
- All Implemented Interfaces:
- MetricNumericConverter, java.io.Serializable
public class Metric$
- extends java.lang.Object
- implements MetricNumericConverter, scala.Serializable
Factory for creating valid Metric instances.
- See Also:
- Serialized Form
Field Summary |
static Metric$ |
MODULE$
Static reference to the singleton instance of this Scala object. |
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODULE$
public static final Metric$ MODULE$
- Static reference to the singleton instance of this Scala object.
Metric$
public Metric$()
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.
- Parameters:
name
- (undocumented)value
- (undocumented)decayFactor
- (undocumented)
- Returns:
- (undocumented)
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.
- Parameters:
name
- (undocumented)value
- (undocumented)decayFactor
- (undocumented)
- Returns:
- (undocumented)