Package org.ldk.structs
Class Scorer
- java.lang.Object
-
- org.ldk.structs.Scorer
-
public class Scorer extends Object
[`routing::Score`] implementation that provides reasonable default behavior. Used to apply a fixed penalty to each channel, thus avoiding long paths when shorter paths with slightly higher fees are available. See [module-level documentation] for usage. [module-level documentation]: crate::routing::scorer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Scoreas_Score()Constructs a new Score which calls the relevant methods on this_arg.protected voidfinalize()static Scorerof(long base_penalty_msat)Creates a new scorer using `base_penalty_msat` as the channel penalty.static Scorerwith_default()Creates a "default" Scorer.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
of
public static Scorer of(long base_penalty_msat)
Creates a new scorer using `base_penalty_msat` as the channel penalty.
-
with_default
public static Scorer with_default()
Creates a "default" Scorer. See struct and individual field documentaiton for details on which values are used.
-
as_Score
public Score as_Score()
Constructs a new Score which calls the relevant methods on this_arg. This copies the `inner` pointer in this_arg and thus the returned Score must be freed before this_arg is
-
-