Package com.tangosol.net
Class RefreshableAddressProvider.CircularIterator
- java.lang.Object
-
- com.tangosol.net.RefreshableAddressProvider.CircularIterator
-
- All Implemented Interfaces:
Iterator
- Enclosing class:
- RefreshableAddressProvider
protected class RefreshableAddressProvider.CircularIterator extends Object implements Iterator
An Iterator implementation that can be converted intocircular modeto allow the remaining addresses and previously skipped addresses to be used; typically set once an address has beenaccepted.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_fCircularWhether this Iterator is currently in a circular mode.protected Iteratorm_iteratorThe iterator used to implement the AddressProvider interface.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCircularIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IteratorensureIterator()Return the cache iterator.booleanhasNext()Objectnext()protected voidrefreshIterator()Set 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, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
m_fCircular
protected boolean m_fCircular
Whether this Iterator is currently in a circular mode.
-
m_iterator
protected Iterator m_iterator
The iterator used to implement the AddressProvider interface.
-
-
Method Detail
-
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
protected Iterator 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.
-
-