1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
8 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
9 public class NetGraphMsgHandler extends CommonBase {
10 NetGraphMsgHandler(Object _dummy, long ptr) { super(ptr); }
11 @Override @SuppressWarnings("deprecation")
12 protected void finalize() throws Throwable {
14 if (ptr != 0) { bindings.NetGraphMsgHandler_free(ptr); }
17 public static NetGraphMsgHandler constructor_new(Access chain_access, Logger logger) {
18 long ret = bindings.NetGraphMsgHandler_new(chain_access == null ? 0 : chain_access.ptr, logger == null ? 0 : logger.ptr);
19 NetGraphMsgHandler ret_hu_conv = new NetGraphMsgHandler(null, ret);
20 ret_hu_conv.ptrs_to.add(chain_access);
21 ret_hu_conv.ptrs_to.add(logger);
25 // Skipped NetGraphMsgHandler_from_net_graph
26 public LockedNetworkGraph read_locked_graph() {
27 long ret = bindings.NetGraphMsgHandler_read_locked_graph(this.ptr);
28 LockedNetworkGraph ret_hu_conv = new LockedNetworkGraph(null, ret);
32 public RoutingMessageHandler as_RoutingMessageHandler() {
33 long ret = bindings.NetGraphMsgHandler_as_RoutingMessageHandler(this.ptr);
34 RoutingMessageHandler ret_hu_conv = new RoutingMessageHandler(null, ret);
35 ret_hu_conv.ptrs_to.add(this);