Package org.ldk.structs
Class PaymentConstraints
- java.lang.Object
-
- org.ldk.structs.PaymentConstraints
-
public class PaymentConstraints extends Object
Constraints for relaying over a given [`BlindedHop`]. [`BlindedHop`]: crate::blinded_path::BlindedHop
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentConstraintsclone()Creates a copy of the PaymentConstraintsprotected voidfinalize()longget_htlc_minimum_msat()The minimum value, in msat, that may be accepted by the node corresponding to this [`BlindedHop`].intget_max_cltv_expiry()The maximum total CLTV delta that is acceptable when relaying a payment over this [`BlindedHop`].static PaymentConstraintsof(int max_cltv_expiry_arg, long htlc_minimum_msat_arg)Constructs a new PaymentConstraints given each fieldstatic Result_PaymentConstraintsDecodeErrorZread(byte[] ser)Read a PaymentConstraints from a byte array, created by PaymentConstraints_writevoidset_htlc_minimum_msat(long val)The minimum value, in msat, that may be accepted by the node corresponding to this [`BlindedHop`].voidset_max_cltv_expiry(int val)The maximum total CLTV delta that is acceptable when relaying a payment over this [`BlindedHop`].byte[]write()Serialize the PaymentConstraints object into a byte array which can be read by PaymentConstraints_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_max_cltv_expiry
public int get_max_cltv_expiry()
The maximum total CLTV delta that is acceptable when relaying a payment over this [`BlindedHop`].
-
set_max_cltv_expiry
public void set_max_cltv_expiry(int val)
The maximum total CLTV delta that is acceptable when relaying a payment over this [`BlindedHop`].
-
get_htlc_minimum_msat
public long get_htlc_minimum_msat()
The minimum value, in msat, that may be accepted by the node corresponding to this [`BlindedHop`].
-
set_htlc_minimum_msat
public void set_htlc_minimum_msat(long val)
The minimum value, in msat, that may be accepted by the node corresponding to this [`BlindedHop`].
-
of
public static PaymentConstraints of(int max_cltv_expiry_arg, long htlc_minimum_msat_arg)
Constructs a new PaymentConstraints given each field
-
clone
public PaymentConstraints clone()
Creates a copy of the PaymentConstraints
-
write
public byte[] write()
Serialize the PaymentConstraints object into a byte array which can be read by PaymentConstraints_read
-
read
public static Result_PaymentConstraintsDecodeErrorZ read(byte[] ser)
Read a PaymentConstraints from a byte array, created by PaymentConstraints_write
-
-