Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.net
Class RefreshableAddressProvider.CircularIterator

java.lang.Object
  extended by com.tangosol.net.RefreshableAddressProvider.CircularIterator

All Implemented Interfaces:
java.util.Iterator
Enclosing class:
RefreshableAddressProvider

protected class RefreshableAddressProvider.CircularIterator
extends java.lang.Object
implements java.util.Iterator

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
protected  boolean m_fCircular
          Whether this Iterator is currently in a circular mode.
protected  java.util.Iterator m_iterator
          The iterator used to implement the AddressProvider interface.

 

Constructor Summary
protected RefreshableAddressProvider.CircularIterator()
           

 

Method Summary
protected  java.util.Iterator ensureIterator()
          Return the cache iterator.
 boolean hasNext()
           
 java.lang.Object next()
           
protected  void refreshIterator()
          Set the value of m_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.

 

Field Detail

m_fCircular

protected boolean m_fCircular
Whether this Iterator is currently in a circular mode.

m_iterator

protected java.util.Iterator m_iterator
The iterator used to implement the AddressProvider interface.

Constructor Detail

RefreshableAddressProvider.CircularIterator

protected RefreshableAddressProvider.CircularIterator()

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

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 java.util.Iterator ensureIterator()
Return the cache iterator.
Returns:
the cache iterator

refreshIterator

protected void refreshIterator()
Set the value of m_iterator to a new iterator from the address list, and ensure the address list is refreshed.

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.