Class ChannelUsage


  • public class ChannelUsage
    extends Object
    Proposed use of a channel passed as a parameter to [`Score::channel_penalty_msat`].
    • Method Detail

      • 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