class SubscriptionIterator extends Object implements Iterator<AddressBook>
| Constructor and Description |
|---|
SubscriptionIterator(List<Subscription> subscriptions,
long delay,
String proxyHost,
int proxyPort)Construct a SubscriptionIterator using the Subscriptions in List subscriptions. |
| Modifier and Type | Method and Description |
|---|---|
boolean | hasNext() |
AddressBook | next()Fetch the next subscription's address book, if the delay has been met. |
void | remove()Not supported. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic SubscriptionIterator(List<Subscription> subscriptions, long delay, String proxyHost, int proxyPort)
subscriptions - List of Subscription objects that represent address books.delay - the minimum delay since last fetched for the iterator to actually fetchproxyHost - proxy hostnameproxyPort - proxy port numberpublic boolean hasNext()
hasNext in interface Iterator<AddressBook>public AddressBook next()
next in interface Iterator<AddressBook>public void remove()
remove in interface Iterator<AddressBook>UnsupportedOperationException - always