diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-10-06 23:55:41 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-10-06 23:55:41 +0200 |
commit | 8fcec55c82a1035dd17a59eb7bd1b1b65fb16f17 (patch) | |
tree | 4ea47e490d61b657601e338d70dbeb8977c2cdb8 /messagebus/src | |
parent | 24c70d22397fad2c2d5d2e8b45d7da664283fd85 (diff) |
Return X-Vespa-Ignored-Fields if fields were ignored
Diffstat (limited to 'messagebus/src')
-rw-r--r-- | messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingTable.java | 48 |
1 files changed, 10 insertions, 38 deletions
diff --git a/messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingTable.java b/messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingTable.java index 30c1a2fd5b3..74ae46353c5 100644 --- a/messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingTable.java +++ b/messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingTable.java @@ -165,43 +165,29 @@ public class RoutingTable { * Constructs a new iterator based on a given map. This is private so that only a {@link RoutingTable} can * create one. * - * @param hops The map to iterate through. + * @param hops the map to iterate through */ private HopIterator(Map<String, HopBlueprint> hops) { it = hops.entrySet().iterator(); next(); } - /** - * Steps to the next hop in the map. - */ + /** Steps to the next hop in the map. */ public void next() { entry = it.hasNext() ? it.next() : null; } - /** - * Returns whether or not this iterator is valid. - * - * @return True if valid. - */ + /** Returns whether this iterator is valid. */ public boolean isValid() { return entry != null; } - /** - * Returns the name of the current hop. - * - * @return The name. - */ + /** Returns the name of the current hop. */ public String getName() { return entry.getKey(); } - /** - * Returns the current hop. - * - * @return The hop. - */ + /** Returns the current hop. */ public HopBlueprint getHop() { return entry.getValue(); } @@ -220,43 +206,29 @@ public class RoutingTable { * Constructs a new iterator based on a given map. This is private so that only a {@link RoutingTable} can * create one. * - * @param routes The map to iterate through. + * @param routes the map to iterate through */ private RouteIterator(Map<String, Route> routes) { it = routes.entrySet().iterator(); next(); } - /** - * Steps to the next route in the map. - */ + /** Steps to the next route in the map. */ public void next() { entry = it.hasNext() ? it.next() : null; } - /** - * Returns whether or not this iterator is valid. - * - * @return True if valid. - */ + /** Returns whether this iterator is valid. */ public boolean isValid() { return entry != null; } - /** - * Returns the name of the current route. - * - * @return The name. - */ + /** Returns the name of the current route. */ public String getName() { return entry.getKey(); } - /** - * Returns the current route. - * - * @return The route. - */ + /** Returns the current route. */ public Route getRoute() { return entry.getValue(); } |