C# Class Akka.Cluster.MetricNumericConverter

INTERNAL API Encapsulates evaluation of validity of metric values, conversion of an actual metric value to an Metric for consumption by subscribed cluster entities.
Afficher le fichier Open project: rogeralsing/akka.net

Méthodes publiques

Méthode Description
ConvertNumber ( object from ) : double

Here in .NET-istan, we're going to use double for all metrics since we don't have convenient base classes for denoting general numeric types like Scala. If a specific metrics method needs an integral data type, it should convert down from double.

Defined ( double value ) : bool

A defined value is greater than zero and not NaN / Infinity

Method Details

ConvertNumber() public static méthode

Here in .NET-istan, we're going to use double for all metrics since we don't have convenient base classes for denoting general numeric types like Scala. If a specific metrics method needs an integral data type, it should convert down from double.
public static ConvertNumber ( object from ) : double
from object
Résultat double

Defined() public static méthode

A defined value is greater than zero and not NaN / Infinity
public static Defined ( double value ) : bool
value double
Résultat bool