Package org.ldk.structs
Class ChannelUsage
- java.lang.Object
-
- org.ldk.structs.ChannelUsage
-
public class ChannelUsage extends Object
Proposed use of a channel passed as a parameter to [`Score::channel_penalty_msat`].
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelUsage
clone()
Creates a copy of the ChannelUsageprotected void
finalize()
long
get_amount_msat()
The amount to send through the channel, denominated in millisatoshis.EffectiveCapacity
get_effective_capacity()
The effective capacity of the channel.long
get_inflight_htlc_msat()
Total amount, denominated in millisatoshis, already allocated to send through the channel as part of a multi-path payment.static ChannelUsage
of(long amount_msat_arg, long inflight_htlc_msat_arg, EffectiveCapacity effective_capacity_arg)
Constructs a new ChannelUsage given each fieldvoid
set_amount_msat(long val)
The amount to send through the channel, denominated in millisatoshis.void
set_effective_capacity(EffectiveCapacity val)
The effective capacity of the channel.void
set_inflight_htlc_msat(long val)
Total amount, denominated in millisatoshis, already allocated to send through the channel as part of a multi-path payment.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_amount_msat
public long get_amount_msat()
The amount to send through the channel, denominated in millisatoshis.
-
set_amount_msat
public void set_amount_msat(long val)
The amount to send through the channel, denominated in millisatoshis.
-
get_inflight_htlc_msat
public long get_inflight_htlc_msat()
Total amount, denominated in millisatoshis, already allocated to send through the channel as part of a multi-path payment.
-
set_inflight_htlc_msat
public void set_inflight_htlc_msat(long val)
Total amount, denominated in millisatoshis, already allocated to send through the channel as part of a multi-path payment.
-
get_effective_capacity
public EffectiveCapacity get_effective_capacity()
The effective capacity of the channel.
-
set_effective_capacity
public void set_effective_capacity(EffectiveCapacity val)
The effective capacity of the channel.
-
of
public static ChannelUsage of(long amount_msat_arg, long inflight_htlc_msat_arg, EffectiveCapacity effective_capacity_arg)
Constructs a new ChannelUsage given each field
-
clone
public ChannelUsage clone()
Creates a copy of the ChannelUsage
-
-