1 11 12 package org.jivesoftware.messenger; 13 14 import org.xmpp.packet.JID; 15 16 import java.util.Iterator ; 17 18 74 public interface RoutingTable { 75 76 86 void addRoute(JID node, RoutableChannelHandler destination); 87 88 96 RoutableChannelHandler getRoute(JID node) throws NoSuchRouteException; 97 98 106 Iterator getRoutes(JID node); 107 108 139 ChannelHandler getBestRoute(JID node) throws NoSuchRouteException; 140 141 148 ChannelHandler removeRoute(JID node); 149 } 150 | Popular Tags |