Stop specific stream from muliple stream


If i created muliple stream from how can i stop a specific stream


The example implements the StreamConsumer class found in

In the example it waits until 10 interactions have been received and then uses the stop() method in the StreamConsumer object.

If you have implemented the example it uses the HttpMulti class which extends the StreamConsumer class. HttpMulti has subscribe() and unsubscribe() methods which allows the consumer to change the hashes the it is subscribed to.

So to unsubscribe from a particular hash you will need to call HttpMulti.unsubscribe(hash)

The new version of the Java client library is currently in alpha and is due for release soon, the alpha release can be found here