Package com.bloomberglp.blpapi
Class SubscriptionIterator
java.lang.Object
com.bloomberglp.blpapi.SubscriptionIterator
The SubscriptionIterator can be used to iterate over all the active subscriptions for a Session.
However, with an asynchronous Session it is possible for the set of active subscriptions to
change whilst the SubscriptionIterator is being used. The SubscriptionIterator is guaranteed to
never return the same subscription twice. However, the subscription the iterator points to may no
longer be active. In this case the result of Subscription.subscriptionStatus()
will be
UNSUBSCRIBED
-
Method Details
-
hasNext
public boolean hasNext()Return true if there are more Subscriptions available for iteration -
next
Returns the next Subscription in the iteration- Throws:
NoSuchElementException
- if the iteration has no more Subscriptions
-