Class NewrelicResponseSerializer
java.lang.Object
com.commercetools.monitoring.newrelic.NewrelicResponseSerializer
- All Implemented Interfaces:
ResponseSerializer
This serializer uses API to submit metrics to newrelic.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<O> ApiHttpResponse<O>
convertResponse
(ApiHttpResponse<byte[]> response, com.fasterxml.jackson.core.type.TypeReference<O> outputType) <O> ApiHttpResponse<O>
convertResponse
(ApiHttpResponse<byte[]> response, JavaType outputType) <O> ApiHttpResponse<O>
convertResponse
(ApiHttpResponse<byte[]> response, Class<O> outputType) byte[]
toJsonByteArray
(Object value)
-
Constructor Details
-
NewrelicResponseSerializer
-
-
Method Details
-
convertResponse
public <O> ApiHttpResponse<O> convertResponse(ApiHttpResponse<byte[]> response, Class<O> outputType) - Specified by:
convertResponse
in interfaceResponseSerializer
-
convertResponse
public <O> ApiHttpResponse<O> convertResponse(ApiHttpResponse<byte[]> response, JavaType outputType) - Specified by:
convertResponse
in interfaceResponseSerializer
-
convertResponse
public <O> ApiHttpResponse<O> convertResponse(ApiHttpResponse<byte[]> response, com.fasterxml.jackson.core.type.TypeReference<O> outputType) - Specified by:
convertResponse
in interfaceResponseSerializer
-
toJsonByteArray
public byte[] toJsonByteArray(Object value) throws com.fasterxml.jackson.core.JsonProcessingException - Specified by:
toJsonByteArray
in interfaceResponseSerializer
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-