import org.ldk.enums.*;
import org.ldk.util.*;
import java.util.Arrays;
+import java.lang.ref.Reference;
import javax.annotation.Nullable;
*/
public int get_forwarding_fee_proportional_millionths() {
int ret = bindings.ChannelConfig_get_forwarding_fee_proportional_millionths(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
*/
public void set_forwarding_fee_proportional_millionths(int val) {
bindings.ChannelConfig_set_forwarding_fee_proportional_millionths(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
}
/**
*/
public int get_forwarding_fee_base_msat() {
int ret = bindings.ChannelConfig_get_forwarding_fee_base_msat(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
*/
public void set_forwarding_fee_base_msat(int val) {
bindings.ChannelConfig_set_forwarding_fee_base_msat(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
}
/**
*/
public short get_cltv_expiry_delta() {
short ret = bindings.ChannelConfig_get_cltv_expiry_delta(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
*/
public void set_cltv_expiry_delta(short val) {
bindings.ChannelConfig_set_cltv_expiry_delta(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
}
/**
*/
public boolean get_announced_channel() {
boolean ret = bindings.ChannelConfig_get_announced_channel(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
*/
public void set_announced_channel(boolean val) {
bindings.ChannelConfig_set_announced_channel(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
}
/**
*/
public boolean get_commit_upfront_shutdown_pubkey() {
boolean ret = bindings.ChannelConfig_get_commit_upfront_shutdown_pubkey(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
*/
public void set_commit_upfront_shutdown_pubkey(boolean val) {
bindings.ChannelConfig_set_commit_upfront_shutdown_pubkey(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
}
/**
*/
public long get_max_dust_htlc_exposure_msat() {
long ret = bindings.ChannelConfig_get_max_dust_htlc_exposure_msat(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
*/
public void set_max_dust_htlc_exposure_msat(long val) {
bindings.ChannelConfig_set_max_dust_htlc_exposure_msat(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
}
/**
*/
public long get_force_close_avoidance_max_fee_satoshis() {
long ret = bindings.ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
*/
public void set_force_close_avoidance_max_fee_satoshis(long val) {
bindings.ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
}
/**
*/
public static ChannelConfig of(int forwarding_fee_proportional_millionths_arg, int forwarding_fee_base_msat_arg, short cltv_expiry_delta_arg, boolean announced_channel_arg, boolean commit_upfront_shutdown_pubkey_arg, long max_dust_htlc_exposure_msat_arg, long force_close_avoidance_max_fee_satoshis_arg) {
long ret = bindings.ChannelConfig_new(forwarding_fee_proportional_millionths_arg, forwarding_fee_base_msat_arg, cltv_expiry_delta_arg, announced_channel_arg, commit_upfront_shutdown_pubkey_arg, max_dust_htlc_exposure_msat_arg, force_close_avoidance_max_fee_satoshis_arg);
+ Reference.reachabilityFence(forwarding_fee_proportional_millionths_arg);
+ Reference.reachabilityFence(forwarding_fee_base_msat_arg);
+ Reference.reachabilityFence(cltv_expiry_delta_arg);
+ Reference.reachabilityFence(announced_channel_arg);
+ Reference.reachabilityFence(commit_upfront_shutdown_pubkey_arg);
+ Reference.reachabilityFence(max_dust_htlc_exposure_msat_arg);
+ Reference.reachabilityFence(force_close_avoidance_max_fee_satoshis_arg);
if (ret >= 0 && ret <= 4096) { return null; }
ChannelConfig ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ChannelConfig(null, ret); }
ret_hu_conv.ptrs_to.add(ret_hu_conv);
long clone_ptr() {
long ret = bindings.ChannelConfig_clone_ptr(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
*/
public ChannelConfig clone() {
long ret = bindings.ChannelConfig_clone(this.ptr);
+ Reference.reachabilityFence(this);
if (ret >= 0 && ret <= 4096) { return null; }
ChannelConfig ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ChannelConfig(null, ret); }
ret_hu_conv.ptrs_to.add(this);
*/
public byte[] write() {
byte[] ret = bindings.ChannelConfig_write(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
*/
public static Result_ChannelConfigDecodeErrorZ read(byte[] ser) {
long ret = bindings.ChannelConfig_read(ser);
+ Reference.reachabilityFence(ser);
if (ret >= 0 && ret <= 4096) { return null; }
Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;