Package io.smallrye.metrics
Interface MetricsRequestHandler.Responder
-
- Enclosing class:
- MetricsRequestHandler
public static interface MetricsRequestHandler.Responder
Responder is used by MetricsRequestHandler to return a response to the caller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
respondWith(int status, String message, Map<String,String> headers)
-
-
-
Method Detail
-
respondWith
void respondWith(int status, String message, Map<String,String> headers) throws IOException
- Parameters:
status
- http status codemessage
- message to be returnedheaders
- a map of http headers- Throws:
IOException
- this method may be implemented to throw an IOException. In such case theMetricsRequestHandler.handleRequest(String, String, Stream, Map, Responder)
will propagate the exception
-
-