public interface CommunicationProblemListener
Modifier and Type | Method and Description |
---|---|
void |
onError(Throwable throwable)
called when the agent was not able to receive an http response.
|
void |
onFailure(int responseCode,
String responseMessage,
String body)
called when the agent successfully received an http response, but the response is invalid.
|
void onFailure(int responseCode, String responseMessage, String body)
Dynatrace.setBeaconHeaders(Map)
and the agent will send a new http request (with the specified headers) to the beacon endpoint.responseCode
- status code from the received http responseresponseMessage
- message from the received http responsebody
- the body from the received http responseDynatrace.setBeaconHeaders(Map)
void onError(Throwable throwable)
throwable
- the reason why the agent was not able receive an http responseHttpURLConnection
© 2020 Dynatrace LLC. All Rights Reserved