All Products
Search
Document Center

TSDBConfig

Last Updated: Aug 27, 2021

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 class

      TSDBConfig.Builder

    • Constructor summary

      Constructor and description

      HiTSDBConfig()

    • Method summary

      Qualifier and type

      Method and description

      static

      TSDBConfig.Builder address(String host, int port)

      Use TSDB.Builder to configure a TSDB client. You must configure the endpoint of the TSDB client.

      int

      getBatchPutBufferSize()

      Query the size of the buffer for asynchronous writes.

      int

      AbstractBatchPutCallback getBatchPutCallback()

      Query the objects of the AbstractBatchPutCallback class.

      int

      getBatchPutConsumerThreadCount()

      Query the number of consumer threads in the buffer.

      int

      getBatchPutRetryCount()

      Query the number of retries.

      int

      getBatchPutSize()

      Query the number of data points that are automatically submitted at a time.

      int

      getBatchPutTimeLimit()

      Query the time-out period for asynchronous writes. Unit: milliseconds.

      int

      getHttpConnectionLiveTime()

      Query the duration during which an HTTP connection is alive. Unit: seconds.

      int

      getHttpConnectionPool()

      Query the maximum number of connections in a connection pool.

      int

      getHttpConnectTimeout()

      Query the time-out period for an HTTP connection. Unit: seconds.

      int

      getHttpKeepaliveTime()

      Query the duration during which a persistent connection is alive. Unit: seconds.

      int

      getIoThreadCount()

      Query the number of I/O threads for asynchronous writes.

      int

      getMaxTPS()

      Query the maximum number of transactions per second (TPS).

      boolean

      isAsyncPut()

      Query whether asynchronous writes are allowed.

      boolean

      isHttpCompress()

      Query whether data is transmitted after compression.
      • Methods inherited from the java.lang.Object class

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, and wait

    • 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()