Package com.ngrok.services
Class EdgeRouteWebsocketTcpConverterModule.ReplaceCallBuilder
java.lang.Object
com.ngrok.services.EdgeRouteWebsocketTcpConverterModule.ReplaceCallBuilder
- Enclosing class:
- EdgeRouteWebsocketTcpConverterModule
A builder object encapsulating state for an unsent Replace API call.
-
Method Summary
Modifier and TypeMethodDescriptionInitiates the API call and blocks until it returns.call()
Initiates the API call asynchronously.module
(EndpointWebsocketTcpConverter module) Sets themodule
parameter.module
(Optional<EndpointWebsocketTcpConverter> module) Sets (or unsets) themodule
parameter.
-
Method Details
-
module
public EdgeRouteWebsocketTcpConverterModule.ReplaceCallBuilder module(EndpointWebsocketTcpConverter module) Sets themodule
parameter.- Parameters:
module
- the value of the module parameter as aEndpointWebsocketTcpConverter
- Returns:
- the call builder instance
-
module
public EdgeRouteWebsocketTcpConverterModule.ReplaceCallBuilder module(Optional<EndpointWebsocketTcpConverter> module) Sets (or unsets) themodule
parameter.- Parameters:
module
- the value of the module parameter as anOptional
ofEndpointWebsocketTcpConverter
- Returns:
- the call builder instance
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofEndpointWebsocketTcpConverter
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
EndpointWebsocketTcpConverter
- Throws:
InterruptedException
- if the thread was interrupted during the call
-