Class TDBaseRequest
- java.lang.Object
-
- cn.thinkingdata.analytics.request.TDBaseRequest
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
TDBatchRequest,TDDebugRequest
public abstract class TDBaseRequest extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description TDBaseRequest(URI server_uri, String appId)TDBaseRequest(URI server_uri, String appId, Integer timeout)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetAppId()IntegergetConnectTimeout()static org.apache.http.impl.client.CloseableHttpClientgetHttpClient()URIgetServerUri()voidsend(String data, int dataSize)
-
-
-
Method Detail
-
getServerUri
public URI getServerUri()
-
getAppId
public String getAppId()
-
getConnectTimeout
public Integer getConnectTimeout()
-
getHttpClient
public static org.apache.http.impl.client.CloseableHttpClient getHttpClient()
-
send
public void send(String data, int dataSize)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-