Package org.ldk.structs
Class ScoreUpdate
- java.lang.Object
-
- org.ldk.structs.ScoreUpdate
-
public class ScoreUpdate extends Object
`ScoreUpdate` is used to update the scorer's internal state after a payment attempt.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceScoreUpdate.ScoreUpdateInterface
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroys the object, freeing associated resources.protected voidfinalize()static ScoreUpdatenew_impl(ScoreUpdate.ScoreUpdateInterface arg)voidpayment_path_failed(Path path, long short_channel_id)Handles updating channel penalties after failing to route through a channel.voidpayment_path_successful(Path path)Handles updating channel penalties after successfully routing along a path.voidprobe_failed(Path path, long short_channel_id)Handles updating channel penalties after a probe over the given path failed.voidprobe_successful(Path path)Handles updating channel penalties after a probe over the given path succeeded.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
destroy
public void destroy()
Destroys the object, freeing associated resources. After this call, any access to this object may result in a SEGFAULT or worse. You should generally NEVER call this method. You should let the garbage collector do this for you when it finalizes objects. However, it may be useful for types which represent locks and should be closed immediately to avoid holding locks until the GC runs.
-
new_impl
public static ScoreUpdate new_impl(ScoreUpdate.ScoreUpdateInterface arg)
-
payment_path_failed
public void payment_path_failed(Path path, long short_channel_id)
Handles updating channel penalties after failing to route through a channel.
-
payment_path_successful
public void payment_path_successful(Path path)
Handles updating channel penalties after successfully routing along a path.
-
probe_failed
public void probe_failed(Path path, long short_channel_id)
Handles updating channel penalties after a probe over the given path failed.
-
probe_successful
public void probe_successful(Path path)
Handles updating channel penalties after a probe over the given path succeeded.
-
-