Class BatchConsumer

    • Constructor Detail

      • BatchConsumer

        public BatchConsumer​(String serverUrl,
                             String appId,
                             boolean isThrowException)
                      throws URISyntaxException
        Deprecated.
        init BatchConsumer with serverUrl and appId
        Parameters:
        serverUrl - serverUrl
        appId - APP ID
        isThrowException - throw exception or not
        Throws:
        URISyntaxException - exception
      • BatchConsumer

        public BatchConsumer​(String serverUrl,
                             String appId,
                             int batchSize,
                             int timeout,
                             boolean autoFlush,
                             int interval)
                      throws URISyntaxException
        Deprecated.
        init BatchConsumer
        Parameters:
        serverUrl - serverUrl
        appId - APP ID
        batchSize - flush event count each time
        timeout - http timeout (Unit: mill second)
        autoFlush - is auto flush or not
        interval - auto flush spacing (Unit: second)
        Throws:
        URISyntaxException - exception
      • BatchConsumer

        public BatchConsumer​(String serverUrl,
                             String appId,
                             int batchSize,
                             int timeout,
                             boolean autoFlush,
                             int interval,
                             String compress)
                      throws URISyntaxException
        Deprecated.
        init BatchConsumer
        Parameters:
        serverUrl - serverUrl
        appId - APP ID
        batchSize - flush event count each time
        timeout - http timeout (Unit: mill second)
        autoFlush - is auto flush or not
        interval - auto flush spacing (Unit: second)
        compress - compress type
        Throws:
        URISyntaxException - exception