com.ngrok.NativeEdgeListener Maven / Gradle / Ivy
The newest version!
package com.ngrok;
import java.io.IOException;
import java.util.Map;
/**
* An implementation of {@link Listener.Edge} that delegates implementation to a native library.
*/
public class NativeEdgeListener extends AbstractEdge implements Listener.Edge {
private long native_address;
public NativeEdgeListener(String id, String metadata, String forwardsTo, Map labels) {
super(id, metadata, forwardsTo, labels);
}
@Override
public native NativeEdgeConnection accept() throws IOException;
@Override
public native void close() throws IOException;
}