Package org.ldk.structs
Class DirectedChannelInfo
- java.lang.Object
-
- org.ldk.structs.DirectedChannelInfo
-
public class DirectedChannelInfo extends Object
A wrapper around [`ChannelInfo`] representing information about the channel as directed from a source node to a target node.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelInfo
channel()
Returns information for the channel.DirectedChannelInfo
clone()
Creates a copy of the DirectedChannelInfoEffectiveCapacity
effective_capacity()
Returns the [`EffectiveCapacity`] of the channel in the direction.protected void
finalize()
long
htlc_maximum_msat()
Returns the maximum HTLC amount allowed over the channel in the direction.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public DirectedChannelInfo clone()
Creates a copy of the DirectedChannelInfo
-
channel
public ChannelInfo channel()
Returns information for the channel.
-
htlc_maximum_msat
public long htlc_maximum_msat()
Returns the maximum HTLC amount allowed over the channel in the direction.
-
effective_capacity
public EffectiveCapacity effective_capacity()
Returns the [`EffectiveCapacity`] of the channel in the direction. This is either the total capacity from the funding transaction, if known, or the `htlc_maximum_msat` for the direction as advertised by the gossip network, if known, otherwise.
-
-