public class TracePublisherRESTClient extends AbstractRESTClient implements TracePublisher
mapper| Constructor and Description |
|---|
TracePublisherRESTClient() |
TracePublisherRESTClient(String username,
String password,
String url) |
| Modifier and Type | Method and Description |
|---|---|
int |
getInitialRetryCount() |
void |
publish(String tenantId,
List<Trace> traces) |
void |
publish(String tenantId,
List<Trace> items,
int retryCount,
long delay) |
void |
retry(String tenantId,
List<Trace> items,
String subscriber,
int retryCount,
long delay) |
void |
setMetricHandler(PublisherMetricHandler<Trace> handler) |
addHeaders, clear, encodedCriteria, getConnectionForGetRequest, getConnectionForRequest, getResponse, getResultsForUrl, getResultsForUrl, getResultsForUrl, getUrl, getUrl, isAvailable, parseResultsIntoJson, postAsJsonTo, setAuthorization, withContext, withJsonPayloadAndResultspublic int getInitialRetryCount()
getInitialRetryCount in interface Publisher<Trace>public void publish(String tenantId, List<Trace> items, int retryCount, long delay) throws Exception
public void retry(String tenantId, List<Trace> items, String subscriber, int retryCount, long delay) throws Exception
public void setMetricHandler(PublisherMetricHandler<Trace> handler)
setMetricHandler in interface Publisher<Trace>Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.