Package com.yahoo.messagebus.routing
Class RoutingTable.RouteIterator
- java.lang.Object
-
- com.yahoo.messagebus.routing.RoutingTable.RouteIterator
-
- Enclosing class:
- RoutingTable
public static class RoutingTable.RouteIterator extends Object
Implements an iterator for the routes of this. UseRoutingTable.getRouteIterator()
to retrieve an instance of this.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of the current route.Route
getRoute()
Returns the current route.boolean
isValid()
Returns whether or not this iterator is valid.void
next()
Steps to the next route in the map.
-
-
-
Method Detail
-
next
public void next()
Steps to the next route in the map.
-
isValid
public boolean isValid()
Returns whether or not this iterator is valid.- Returns:
- True if valid.
-
getName
public String getName()
Returns the name of the current route.- Returns:
- The name.
-
getRoute
public Route getRoute()
Returns the current route.- Returns:
- The route.
-
-