Package lv.id.jc.piglatin.actuator
Class StatusCodeSupplier
java.lang.Object
lv.id.jc.piglatin.actuator.StatusCodeSupplier
- All Implemented Interfaces:
IntSupplier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getAsInt()
Returns the HTTP response code obtained by making a GET request to the specified base URL.
-
Constructor Details
-
StatusCodeSupplier
-
-
Method Details
-
getAsInt
public int getAsInt()Returns the HTTP response code obtained by making a GET request to the specified base URL.- Specified by:
getAsInt
in interfaceIntSupplier
- Returns:
- The HTTP response code.
- Throws:
RuntimeException
- if an IOException or InterruptedException occurs during the execution of the GET request.
-