Package com.tangosol.net
Class RefreshableAddressProvider.CircularIterator
java.lang.Object
com.tangosol.net.RefreshableAddressProvider.CircularIterator
- All Implemented Interfaces:
Iterator
- Enclosing class:
RefreshableAddressProvider
An Iterator implementation that can be converted into
circular mode to allow the remaining addresses and previously skipped
addresses to be used; typically set once an address has been accepted.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether this Iterator is currently in a circular mode.protected IteratorThe iterator used to implement the AddressProvider interface. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IteratorReturn the cache iterator.booleanhasNext()next()protected voidSet the value ofm_iteratorto a new iterator from the address list, and ensure the address list is refreshed.voidremove()voidsetCircular(boolean fCircular) Set whether the Iterator should operate in a circular mode.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
m_fCircular
protected boolean m_fCircularWhether this Iterator is currently in a circular mode. -
m_iterator
The iterator used to implement the AddressProvider interface.
-
-
Constructor Details
-
CircularIterator
protected CircularIterator()
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
setCircular
public void setCircular(boolean fCircular) Set whether the Iterator should operate in a circular mode.- Parameters:
fCircular- whether the Iterator should operate in a circular mode
-
ensureIterator
Return the cache iterator.- Returns:
- the cache iterator
-
refreshIterator
protected void refreshIterator()Set the value ofm_iteratorto a new iterator from the address list, and ensure the address list is refreshed.
-