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 mode
to 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 boolean
m_fCircular
Whether this Iterator is currently in a circular mode.protected Iterator
m_iterator
The iterator used to implement the AddressProvider interface.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CircularIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Iterator
ensureIterator()
Return the cache iterator.boolean
hasNext()
Object
next()
protected void
refreshIterator()
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 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_iterator
to a new iterator from the address list, and ensure the address list is refreshed.
-
-