public class LocalhostExternalIpLoader
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static org.slf4j.Logger | LOG | 
| Constructor and Description | 
|---|
| LocalhostExternalIpLoader() | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.lang.String | getLocalhostIpQuicklyOrDefault()As  getLocalhostIpWithin(Duration)but returning 127.0.0.1 if not accessible | 
| static java.lang.String | getLocalhostIpWaiting()As  getLocalhostIpWithin(Duration)but without the time limit cut-off, failing if the load gives an error. | 
| static java.lang.String | getLocalhostIpWithin(Duration timeout)Attempts to load the public IP address of localhost, failing if the load
 does not complete within the given duration. | 
public static java.lang.String getLocalhostIpQuicklyOrDefault()
getLocalhostIpWithin(Duration) but returning 127.0.0.1 if not accessiblepublic static java.lang.String getLocalhostIpWaiting()
getLocalhostIpWithin(Duration) but without the time limit cut-off, failing if the load gives an error.public static java.lang.String getLocalhostIpWithin(Duration timeout)