Package org.ldk.structs
Class RouteParameters
- java.lang.Object
-
- org.ldk.structs.RouteParameters
-
public class RouteParameters extends Object
Parameters needed to find a [`Route`] for paying a [`Payee`]. Passed to [`find_route`] and also provided in [`Event::PaymentPathFailed`] for retrying a failed payment path. [`Event::PaymentPathFailed`]: crate::util::events::Event::PaymentPathFailed
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteParametersclone()Creates a copy of the RouteParametersprotected voidfinalize()intget_final_cltv_expiry_delta()The CLTV on the final hop of the failed payment path.longget_final_value_msat()The amount in msats sent on the failed payment path.Payeeget_payee()The recipient of the failed payment path.static RouteParametersof(Payee payee_arg, long final_value_msat_arg, int final_cltv_expiry_delta_arg)Constructs a new RouteParameters given each fieldstatic Result_RouteParametersDecodeErrorZread(byte[] ser)Read a RouteParameters from a byte array, created by RouteParameters_writevoidset_final_cltv_expiry_delta(int val)The CLTV on the final hop of the failed payment path.voidset_final_value_msat(long val)The amount in msats sent on the failed payment path.voidset_payee(Payee val)The recipient of the failed payment path.byte[]write()Serialize the RouteParameters object into a byte array which can be read by RouteParameters_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_payee
public Payee get_payee()
The recipient of the failed payment path.
-
set_payee
public void set_payee(Payee val)
The recipient of the failed payment path.
-
get_final_value_msat
public long get_final_value_msat()
The amount in msats sent on the failed payment path.
-
set_final_value_msat
public void set_final_value_msat(long val)
The amount in msats sent on the failed payment path.
-
get_final_cltv_expiry_delta
public int get_final_cltv_expiry_delta()
The CLTV on the final hop of the failed payment path.
-
set_final_cltv_expiry_delta
public void set_final_cltv_expiry_delta(int val)
The CLTV on the final hop of the failed payment path.
-
of
public static RouteParameters of(Payee payee_arg, long final_value_msat_arg, int final_cltv_expiry_delta_arg)
Constructs a new RouteParameters given each field
-
clone
public RouteParameters clone()
Creates a copy of the RouteParameters
-
write
public byte[] write()
Serialize the RouteParameters object into a byte array which can be read by RouteParameters_read
-
read
public static Result_RouteParametersDecodeErrorZ read(byte[] ser)
Read a RouteParameters from a byte array, created by RouteParameters_write
-
-