public class ConnectionUtils extends Object
| Constructor and Description |
|---|
ConnectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
selectAvailableHttpHost(List<String> hostList,
int connectionTimeout)
Select an available host from the list.
|
static boolean |
testHttpConnection(String urlStr,
int connectionTimeout) |
@Nullable public static String selectAvailableHttpHost(List<String> hostList, int connectionTimeout)
public static boolean testHttpConnection(String urlStr, int connectionTimeout)
Copyright © 2024. All rights reserved.