Uses of Class
org.ldk.structs.EffectiveCapacity
-
Packages that use EffectiveCapacity Package Description org.ldk.structs -
-
Uses of EffectiveCapacity in org.ldk.structs
Subclasses of EffectiveCapacity in org.ldk.structs Modifier and Type Class Description static class
EffectiveCapacity.ExactLiquidity
The available liquidity in the channel known from being a channel counterparty, and thus a direct hop.static class
EffectiveCapacity.Infinite
A capacity sufficient to route any payment, typically used for private channels provided by an invoice.static class
EffectiveCapacity.MaximumHTLC
The maximum HTLC amount in one direction as advertised on the gossip network.static class
EffectiveCapacity.Total
The total capacity of the channel as determined by the funding transaction.static class
EffectiveCapacity.Unknown
A capacity that is unknown possibly because either the chain state is unavailable to know the total capacity or the `htlc_maximum_msat` was not advertised on the gossip network.Methods in org.ldk.structs that return EffectiveCapacity Modifier and Type Method Description EffectiveCapacity
EffectiveCapacity. clone()
Creates a copy of the EffectiveCapacityEffectiveCapacity
DirectedChannelInfo. effective_capacity()
Returns the [`EffectiveCapacity`] of the channel in the direction.static EffectiveCapacity
EffectiveCapacity. exact_liquidity(long liquidity_msat)
Utility method to constructs a new ExactLiquidity-variant EffectiveCapacityEffectiveCapacity
ChannelUsage. get_effective_capacity()
The effective capacity of the channel.static EffectiveCapacity
EffectiveCapacity. infinite()
Utility method to constructs a new Infinite-variant EffectiveCapacitystatic EffectiveCapacity
EffectiveCapacity. maximum_htlc(long amount_msat)
Utility method to constructs a new MaximumHTLC-variant EffectiveCapacitystatic EffectiveCapacity
EffectiveCapacity. total(long capacity_msat, long htlc_maximum_msat)
Utility method to constructs a new Total-variant EffectiveCapacitystatic EffectiveCapacity
EffectiveCapacity. unknown()
Utility method to constructs a new Unknown-variant EffectiveCapacityMethods in org.ldk.structs with parameters of type EffectiveCapacity Modifier and Type Method Description static ChannelUsage
ChannelUsage. of(long amount_msat_arg, long inflight_htlc_msat_arg, EffectiveCapacity effective_capacity_arg)
Constructs a new ChannelUsage given each fieldvoid
ChannelUsage. set_effective_capacity(EffectiveCapacity val)
The effective capacity of the channel.
-