Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / ChannelManager.java
index c5afb1964e181236eeaf01bd593594c63ff5f053..d0de49a291672f50455df9016f68909808a12c49 100644 (file)
@@ -394,6 +394,18 @@ public class ChannelManager extends CommonBase {
                bindings.ChannelManager_block_disconnected(this.ptr, header);
        }
 
+       /**
+        * Blocks until ChannelManager needs to be persisted or a timeout is reached. It returns a bool
+        * indicating whether persistence is necessary. Only one listener on
+        * `await_persistable_update` or `await_persistable_update_timeout` is guaranteed to be woken
+        * up.
+        * Note that the feature `allow_wallclock_use` must be enabled to use this function.
+        */
+       public boolean await_persistable_update_timeout(long max_wait) {
+               boolean ret = bindings.ChannelManager_await_persistable_update_timeout(this.ptr, max_wait);
+               return ret;
+       }
+
        /**
         * Blocks until ChannelManager needs to be persisted. Only one listener on
         * `await_persistable_update` or `await_persistable_update_timeout` is guaranteed to be woken