// recommended : "take" blocks until some data is fetched, the client automatically continues to pull
//from DataSift until the subscription is finished or failed for some reason.
//if you want to stop the automatic fetching call streamSubscriptions.stopPulling();
//alternatively, use the take(upto,time unit) method to specify the maximum time to wait for interactions to
//become available
while (!((interaction = streamSubscriptions.take()) instanceof LastInteraction)) {
System.out.println(interaction);
}
System.out.println("We're done!");
}
}