Package com.ngrok
Interface Forwarder
-
- All Superinterfaces:
AutoCloseable
,ListenerInfo
- All Known Subinterfaces:
Forwarder.Edge
,Forwarder.Endpoint
public interface Forwarder extends ListenerInfo, AutoCloseable
Forwarder is a type of listener which automatically forwards the incomingConnection
s to another url
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Forwarder.Builder<F extends Forwarder>
Represents a builder that can create newForwarder
instances.static interface
Forwarder.Edge
Represents an edgeForwarder
static interface
Forwarder.Endpoint
Represents an endpointForwarder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes thisForwarder
.void
join()
Waits for this forwarder to complete.-
Methods inherited from interface com.ngrok.ListenerInfo
getForwardsTo, getId, getMetadata
-
-
-
-
Method Detail
-
join
void join() throws IOException
Waits for this forwarder to complete. After join returns, this forwarder is considered closed.- Throws:
IOException
- if an I/O error occurs
-
close
void close() throws IOException
Closes thisForwarder
.- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
- if an I/O error occurs
-
-