Package org.ldk.structs
Class ForwardTlvs
- java.lang.Object
-
- org.ldk.structs.ForwardTlvs
-
public class ForwardTlvs extends Object
Data to construct a [`BlindedHop`] for forwarding a payment.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ForwardTlvsclone()Creates a copy of the ForwardTlvsprotected voidfinalize()BlindedHopFeaturesget_features()Supported and required features when relaying a payment onion containing this object's corresponding [`BlindedHop::encrypted_payload`].PaymentConstraintsget_payment_constraints()Payment constraints for relaying over [`Self::short_channel_id`].PaymentRelayget_payment_relay()Payment parameters for relaying over [`Self::short_channel_id`].longget_short_channel_id()The short channel id this payment should be forwarded out over.static ForwardTlvsof(long short_channel_id_arg, PaymentRelay payment_relay_arg, PaymentConstraints payment_constraints_arg, BlindedHopFeatures features_arg)Constructs a new ForwardTlvs given each fieldvoidset_features(BlindedHopFeatures val)Supported and required features when relaying a payment onion containing this object's corresponding [`BlindedHop::encrypted_payload`].voidset_payment_constraints(PaymentConstraints val)Payment constraints for relaying over [`Self::short_channel_id`].voidset_payment_relay(PaymentRelay val)Payment parameters for relaying over [`Self::short_channel_id`].voidset_short_channel_id(long val)The short channel id this payment should be forwarded out over.byte[]write()Serialize the ForwardTlvs object into a byte array which can be read by ForwardTlvs_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_short_channel_id
public long get_short_channel_id()
The short channel id this payment should be forwarded out over.
-
set_short_channel_id
public void set_short_channel_id(long val)
The short channel id this payment should be forwarded out over.
-
get_payment_relay
public PaymentRelay get_payment_relay()
Payment parameters for relaying over [`Self::short_channel_id`].
-
set_payment_relay
public void set_payment_relay(PaymentRelay val)
Payment parameters for relaying over [`Self::short_channel_id`].
-
get_payment_constraints
public PaymentConstraints get_payment_constraints()
Payment constraints for relaying over [`Self::short_channel_id`].
-
set_payment_constraints
public void set_payment_constraints(PaymentConstraints val)
Payment constraints for relaying over [`Self::short_channel_id`].
-
get_features
public BlindedHopFeatures get_features()
Supported and required features when relaying a payment onion containing this object's corresponding [`BlindedHop::encrypted_payload`]. [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload
-
set_features
public void set_features(BlindedHopFeatures val)
Supported and required features when relaying a payment onion containing this object's corresponding [`BlindedHop::encrypted_payload`]. [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload
-
of
public static ForwardTlvs of(long short_channel_id_arg, PaymentRelay payment_relay_arg, PaymentConstraints payment_constraints_arg, BlindedHopFeatures features_arg)
Constructs a new ForwardTlvs given each field
-
clone
public ForwardTlvs clone()
Creates a copy of the ForwardTlvs
-
write
public byte[] write()
Serialize the ForwardTlvs object into a byte array which can be read by ForwardTlvs_read
-
-