[Java] Update auto-generated Java bindings to LDK 0.0.110
[ldk-java] / src / main / java / org / ldk / structs / PeerManager.java
index e41024f8ed7b6397687d8a0748103959b8a56cee..4bd90f7e44e9e8473ef0ba38052f1c0929c11ed6 100644 (file)
@@ -52,7 +52,7 @@ public class PeerManager extends CommonBase {
                Reference.reachabilityFence(logger);
                Reference.reachabilityFence(custom_message_handler);
                if (ret >= 0 && ret <= 4096) { return null; }
-               PeerManager ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new PeerManager(null, ret); }
+               org.ldk.structs.PeerManager ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PeerManager(null, ret); }
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                ret_hu_conv.ptrs_to.add(message_handler_chan_handler_arg);
                ret_hu_conv.ptrs_to.add(message_handler_route_handler_arg);
@@ -82,8 +82,7 @@ public class PeerManager extends CommonBase {
         * peer using the init message.
         * The user should pass the remote network address of the host they are connected to.
         * 
-        * Note that if an Err is returned here you MUST NOT call socket_disconnected for the new
-        * descriptor but must disconnect the connection immediately.
+        * If an `Err` is returned here you must disconnect the connection immediately.
         * 
         * Returns a small number of bytes to send to the remote node (currently always 50).
         * 
@@ -113,9 +112,8 @@ public class PeerManager extends CommonBase {
         * The user should pass the remote network address of the host they are connected to.
         * 
         * May refuse the connection by returning an Err, but will never write bytes to the remote end
-        * (outbound connector always speaks first). Note that if an Err is returned here you MUST NOT
-        * call socket_disconnected for the new descriptor but must disconnect the connection
-        * immediately.
+        * (outbound connector always speaks first). If an `Err` is returned here you must disconnect
+        * the connection immediately.
         * 
         * Panics if descriptor is duplicative with some other descriptor which has not yet been
         * [`socket_disconnected()`].
@@ -193,6 +191,10 @@ public class PeerManager extends CommonBase {
         * You don't have to call this function explicitly if you are using [`lightning-net-tokio`]
         * or one of the other clients provided in our language bindings.
         * 
+        * Note that if there are any other calls to this function waiting on lock(s) this may return
+        * without doing any work. All available events that need handling will be handled before the
+        * other calls return.
+        * 
         * [`send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
         * [`ChannelManager::process_pending_htlc_forwards`]: crate::ln::channelmanager::ChannelManager::process_pending_htlc_forwards
         * [`send_data`]: SocketDescriptor::send_data