Package org.ldk.structs
Class ScorerAccountingForInFlightHtlcs
- java.lang.Object
-
- org.ldk.structs.ScorerAccountingForInFlightHtlcs
-
public class ScorerAccountingForInFlightHtlcs extends Object
[`ScoreLookUp`] implementation that factors in in-flight HTLC liquidity. Useful for custom [`Router`] implementations to wrap their [`ScoreLookUp`] on-the-fly when calling [`find_route`]. [`ScoreLookUp`]: crate::routing::scoring::ScoreLookUp
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScoreLookUpas_ScoreLookUp()Constructs a new ScoreLookUp which calls the relevant methods on this_arg.protected voidfinalize()static ScorerAccountingForInFlightHtlcsof(ScoreLookUp scorer, InFlightHtlcs inflight_htlcs)Initialize a new `ScorerAccountingForInFlightHtlcs`.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
of
public static ScorerAccountingForInFlightHtlcs of(ScoreLookUp scorer, InFlightHtlcs inflight_htlcs)
Initialize a new `ScorerAccountingForInFlightHtlcs`.
-
as_ScoreLookUp
public ScoreLookUp as_ScoreLookUp()
Constructs a new ScoreLookUp which calls the relevant methods on this_arg. This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is
-
-