Class TDDebugConsumer

    • Constructor Detail

      • TDDebugConsumer

        public TDDebugConsumer​(String serverUrl,
                               String appId,
                               String deviceId)
                        throws URISyntaxException
        Construct DebugConsumer
        Parameters:
        serverUrl - receiver url
        appId - project ID in TE
        deviceId - debug device ID
        Throws:
        URISyntaxException - exception
      • TDDebugConsumer

        public TDDebugConsumer​(String serverUrl,
                               String appId,
                               boolean writeData)
                        throws URISyntaxException
        Construct DebugConsumer
        Parameters:
        serverUrl - receiver url
        appId - project ID in TE
        writeData - Whether to write data to the TE database. default is false
        Throws:
        URISyntaxException - exception
      • TDDebugConsumer

        public TDDebugConsumer​(String serverUrl,
                               String appId,
                               boolean writeData,
                               String deviceId)
                        throws URISyntaxException
        Construct DebugConsumer
        Parameters:
        serverUrl - receiver url
        appId - project ID in TE
        writeData - Whether to write data to the TE database. default is false
        deviceId - debug device ID
        Throws:
        URISyntaxException - exception
    • Method Detail

      • flush

        public void flush()
        Description copied from interface: ITDConsumer
        upload all data in buffer immediately
        Specified by:
        flush in interface ITDConsumer
      • close

        public void close()
        Description copied from interface: ITDConsumer
        close consumer
        Specified by:
        close in interface ITDConsumer