Package com.yahoo.messagebus.routing
Class RoutingTable.HopIterator
java.lang.Object
com.yahoo.messagebus.routing.RoutingTable.HopIterator
- Enclosing class:
- RoutingTable
Implements an iterator for the hops of this. Use
RoutingTable.getHopIterator()
to retrieve an instance of this.-
Method Summary
-
Method Details
-
next
public void next()Steps to the next hop in the map. -
isValid
public boolean isValid()Returns whether or not this iterator is valid.- Returns:
- True if valid.
-
getName
Returns the name of the current hop.- Returns:
- The name.
-
getHop
Returns the current hop.- Returns:
- The hop.
-