Update auto-updated Java files
[ldk-java] / src / main / java / org / ldk / structs / LockedChannelMonitor.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5 import org.ldk.util.*;
6 import java.util.Arrays;
7 import java.lang.ref.Reference;
8 import javax.annotation.Nullable;
9
10
11 /**
12  * A read-only reference to a current ChannelMonitor.
13  * 
14  * Note that this holds a mutex in [`ChainMonitor`] and may block other events until it is
15  * released.
16  */
17 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
18 public class LockedChannelMonitor extends CommonBase implements AutoCloseable {
19         LockedChannelMonitor(Object _dummy, long ptr) { super(ptr); }
20         @Override public void close() {
21                 if (ptr != 0) { bindings.LockedChannelMonitor_free(ptr); }
22         }
23
24 }