public class BlockingRequester extends Object implements IRequester
| Modifier and Type | Field and Description |
|---|---|
protected AnalyticsClient |
client |
| Constructor and Description |
|---|
BlockingRequester(AnalyticsClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.http.HttpResponse |
executeRequest(String writeKey,
String json) |
String |
readResponseBody(org.apache.http.HttpResponse response) |
boolean |
send(Batch batch) |
protected AnalyticsClient client
public BlockingRequester(AnalyticsClient client)
public boolean send(Batch batch)
send in interface IRequesterpublic org.apache.http.HttpResponse executeRequest(String writeKey, String json) throws org.apache.http.client.ClientProtocolException, IOException
org.apache.http.client.ClientProtocolExceptionIOExceptionpublic String readResponseBody(org.apache.http.HttpResponse response) throws IOException
IOExceptionpublic void close()
close in interface IRequesterCopyright © 2015. All Rights Reserved.