estonlabs.cxtl.common.http.MetricsLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cxtl Show documentation
Show all versions of cxtl Show documentation
CXTL – Crypto eXchange Trading Library
package estonlabs.cxtl.common.http;
/**
* Used bt the rst client to log metrics of the requests.
*/
public interface MetricsLogger {
/**
* A request that returns an expected response. Could be valid JSON but an API error
* @param event - the req / resp event
*/
void finishedSuccess(Event event);
/**
* Returns a failed response, this could be a http error or an API error.
* @param event - the req / resp event
*/
void finishedError(Event event);
}