Class name: com.aliyun.hitsdb.client.TSDBConfig
java.lang.Object
com.aliyun.hitsdb.client.TSDBConfig
publicclassTSDBConfigextendsObject
Nested class summary
Qualifier and type
Class and description
static classTSDBConfig.Builder
Constructor summary
Constructor and description
HiTSDBConfig
()
Method summary
Qualifier and type
Method and description
staticTSDBConfig.Builderaddress(String host, int port)Use TSDB.Builder to configure a TSDB client. You must configure the endpoint of the TSDB client.
intgetBatchPutBufferSize()Query the size of the buffer for asynchronous writes.
intAbstractBatchPutCallbackgetBatchPutCallback()Query the objects of the AbstractBatchPutCallback class.intgetBatchPutConsumerThreadCount()Query the number of consumer threads in the buffer.
intgetBatchPutRetryCount()Query the number of retries.
intgetBatchPutSize()Query the number of data points that are automatically submitted at a time.intgetBatchPutTimeLimit()Query the time-out period for asynchronous writes. Unit: milliseconds.intgetHttpConnectionLiveTime()Query the duration during which an HTTP connection is alive. Unit: seconds.intgetHttpConnectionPool()Query the maximum number of connections in a connection pool.intgetHttpConnectTimeout()Query the time-out period for an HTTP connection. Unit: seconds.intgetHttpKeepaliveTime()Query the duration during which a persistent connection is alive. Unit: seconds.intgetIoThreadCount()Query the number of I/O threads for asynchronous writes.intgetMaxTPS()Query the maximum number of transactions per second (TPS).booleanisAsyncPut()Query whether asynchronous writes are allowed.booleanisHttpCompress()Query whether data is transmitted after compression.Methods inherited from the java.lang.Object class
clone,equals,finalize,getClass,hashCode,notify,notifyAll,toString, andwait
Constructor details
TSDBConfig
public TSDBConfig()
Method details
address
publicstatic TSDBConfig.Builder address(String host,int port)
address
publicstatic TSDBConfig.Builder address(TSDBNetAddress… netAddresses)
getPutRequestLimit
public int getPutRequestLimit()
getBatchPutBufferSize
public int getBatchPutBufferSize()
getBatchPutCallback
public AbstractBatchPutCallback<?> getBatchPutCallback()
getBatchPutConsumerThreadCount
public int getBatchPutConsumerThreadCount()
getBatchPutRetryCount
public int getBatchPutRetryCount()
getBatchPutSize
public int getBatchPutSize()
getBatchPutTimeLimit
public int getBatchPutTimeLimit()
getHttpConnectionPool
public int getHttpConnectionPool()
getHttpConnectTimeout
public int getHttpConnectTimeout()
getIoThreadCount
public int getIoThreadCount()
isPutRequestLimitSwitch
public boolean isPutRequestLimitSwitch()
isHttpCompress
public boolean isHttpCompress()
isBackpressure
public boolean isBackpressure()
getHttpConnectionLiveTime
public int getHttpConnectionLiveTime()
getHttpKeepaliveTime
public int getHttpKeepaliveTime()
isAsyncPut
public boolean isAsyncPut()
getMaxTPS
public int getMaxTPS()