com.bloomberglp.blpapi
Class SubscriptionIterator

java.lang.Object
  extended by com.bloomberglp.blpapi.SubscriptionIterator

public class SubscriptionIterator
extends java.lang.Object

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

Author:
ssomu

Method Summary
 boolean hasNext()
          Return true if there are more Subscriptions available for iteration
 Subscription next()
          Returns the next Subscription in the iteration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public boolean hasNext()
Return true if there are more Subscriptions available for iteration


next

public Subscription next()
Returns the next Subscription in the iteration

Throws:
java.util.NoSuchElementException - if the iteration has no more Subscriptions


Copyright © 2015 Bloomberg L.P.. All Rights Reserved.