Package org.ldk.structs
Class ScorerAccountingForInFlightHtlcs
- java.lang.Object
-
- org.ldk.structs.ScorerAccountingForInFlightHtlcs
-
public class ScorerAccountingForInFlightHtlcs extends Object
[`Score`] implementation that factors in in-flight HTLC liquidity. Useful for custom [`Router`] implementations to wrap their [`Score`] on-the-fly when calling [`find_route`]. [`Score`]: crate::routing::scoring::Score
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Score
as_Score()
Constructs a new Score which calls the relevant methods on this_arg.protected void
finalize()
static ScorerAccountingForInFlightHtlcs
of(Score scorer, InFlightHtlcs inflight_htlcs)
Initialize a new `ScorerAccountingForInFlightHtlcs`.byte[]
write()
Serialize the ScorerAccountingForInFlightHtlcs object into a byte array which can be read by ScorerAccountingForInFlightHtlcs_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
of
public static ScorerAccountingForInFlightHtlcs of(Score scorer, InFlightHtlcs inflight_htlcs)
Initialize a new `ScorerAccountingForInFlightHtlcs`.
-
write
public byte[] write()
Serialize the ScorerAccountingForInFlightHtlcs object into a byte array which can be read by ScorerAccountingForInFlightHtlcs_read
-
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
-
-