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
Modifier and TypeFieldDescriptionprotected boolean
Whether this Iterator is currently in a circular mode.protected Iterator
The iterator used to implement the AddressProvider interface. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Iterator
Return the cache iterator.boolean
hasNext()
next()
protected void
Set the value ofm_iterator
to a new iterator from the address list, and ensure the address list is refreshed.void
remove()
void
setCircular
(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, wait
Methods 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_iterator
to a new iterator from the address list, and ensure the address list is refreshed.
-