Stop specific stream from muliple stream


#1

If i created muliple stream from football.java how can i stop a specific stream


#2

The Football.java example implements the StreamConsumer class found in StreamConsumer.java

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

If you have implemented the MultiStream.java 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