Package com.ngrok
Class Ngrok.BackendsNamespace
java.lang.Object
com.ngrok.Ngrok.BackendsNamespace
- Enclosing class:
- Ngrok
A namespace object for Backends.
-
Method Summary
Modifier and TypeMethodDescriptionfailover()
A Failover backend defines failover behavior within a list of referenced backends.Creates a service client forHttpResponseBackends
.A Tunnel Group Backend balances traffic among all online tunnels that match a label selector.weighted()
A Weighted Backend balances traffic among the referenced backends.
-
Method Details
-
failover
A Failover backend defines failover behavior within a list of referenced backends. Traffic is sent to the first backend in the list. If that backend is offline or no connection can be established, ngrok attempts to connect to the next backend in the list until one is successful. See also https://ngrok.com/docs/api#api-failover-backends- Returns:
- a service client
-
httpResponse
Creates a service client forHttpResponseBackends
. See also https://ngrok.com/docs/api#api-http-response-backends- Returns:
- a service client
-
tunnelGroup
A Tunnel Group Backend balances traffic among all online tunnels that match a label selector. See also https://ngrok.com/docs/api#api-tunnel-group-backends- Returns:
- a service client
-
weighted
A Weighted Backend balances traffic among the referenced backends. Traffic is assigned proportionally to each based on its weight. The percentage of traffic is calculated by dividing a backend's weight by the sum of all weights. See also https://ngrok.com/docs/api#api-weighted-backends- Returns:
- a service client
-