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 incomingConnections to another url
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceForwarder.Builder<F extends Forwarder>Represents a builder that can create newForwarderinstances.static interfaceForwarder.EdgeRepresents an edgeForwarderstatic interfaceForwarder.EndpointRepresents an endpointForwarder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes thisForwarder.voidjoin()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 IOExceptionCloses thisForwarder.- Specified by:
closein interfaceAutoCloseable- Throws:
IOException- if an I/O error occurs
-
-