Package org.ldk.structs
Class PeerHandleError
- java.lang.Object
-
- org.ldk.structs.PeerHandleError
-
public class PeerHandleError extends Object
Error for PeerManager errors. If you get one of these, you must disconnect the socket and generate no further read_event/write_buffer_space_avail/socket_disconnected calls for the descriptor.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PeerHandleErrorclone()Creates a copy of the PeerHandleErrorprotected voidfinalize()booleanget_no_connection_possible()Used to indicate that we probably can't make any future connections to this peer (e.g.static PeerHandleErrorof(boolean no_connection_possible_arg)Constructs a new PeerHandleError given each fieldvoidset_no_connection_possible(boolean val)Used to indicate that we probably can't make any future connections to this peer (e.g.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_no_connection_possible
public boolean get_no_connection_possible()
Used to indicate that we probably can't make any future connections to this peer (e.g. because we required features that our peer was missing, or vice versa). While LDK's [`ChannelManager`] will not do it automatically, you likely wish to force-close any channels with this peer or check for new versions of LDK. [`ChannelManager`]: crate::ln::channelmanager::ChannelManager
-
set_no_connection_possible
public void set_no_connection_possible(boolean val)
Used to indicate that we probably can't make any future connections to this peer (e.g. because we required features that our peer was missing, or vice versa). While LDK's [`ChannelManager`] will not do it automatically, you likely wish to force-close any channels with this peer or check for new versions of LDK. [`ChannelManager`]: crate::ln::channelmanager::ChannelManager
-
of
public static PeerHandleError of(boolean no_connection_possible_arg)
Constructs a new PeerHandleError given each field
-
clone
public PeerHandleError clone()
Creates a copy of the PeerHandleError
-
-