I am using datasift-java library to create a stream and to receive data from it via TYPE_HTTP consumer.
However sometimes after I stop consuming via consumer.stop() Billing UI still shows that credit is decreasing. It proceeds decreasing even several hours after it and even after I KILL my java application until my credit reaches zero. So looks like an issue on Datasift side.
To troubleshoot: please check user jmors2 - its credit is decreasing right now when I am writing this post (Jan,11 - Jan,12). I faced this situation several times already.
Here is my java code to start consuming and to stop it:
User user = new User(credentials.getUsername(), credentials.getPassword());
Definition def = user.createDefinition(experiment.getCsdlFilter());
StreamConsumer underlyingConsumer = def.getConsumer(StreamConsumer.TYPE_HTTP,
underlyingConsumer.consume(); ... underlyingConsumer.stop();
Could you please look into this problem and advise how to fix it?