public static ExchangeServer bind(String url, Replier<?> replier) throws RemotingException { return bind(URL.valueOf(url), replier); }
protected Client connect(URL url) throws RemotingException { if (servers.containsKey(url)) { return null; } ExchangeClient client = clients.get(url); if (client == null) { // TODO exist concurrent gap client = Exchangers.connect(url, dispatcher); clients.put(url, client); } return client; }
public static Exchanger getExchanger(URL url) { String type = url.getParameter(Constants.EXCHANGER_KEY, Constants.DEFAULT_EXCHANGER); return getExchanger(type); }
protected Client connect(URL url) throws RemotingException { if (servers.containsKey(url)) { return null; } ExchangeClient client = clients.get(url); if (client == null) { // TODO exist concurrent gap client = Exchangers.connect(url, dispatcher); clients.put(url, client); } return client; }
public static ExchangeServer bind(URL url, Replier<?> replier) throws RemotingException { return bind(url, new ChannelHandlerAdapter(), replier); }
public static Exchanger getExchanger(URL url) { String type = url.getParameter(Constants.EXCHANGER_KEY, Constants.DEFAULT_EXCHANGER); return getExchanger(type); }
public static ExchangeClient connect(String url) throws RemotingException { return connect(URL.valueOf(url)); }
public static ExchangeServer bind(URL url, ChannelHandler handler, Replier<?> replier) throws RemotingException { return bind(url, new ExchangeHandlerDispatcher(replier, handler)); }
public static ExchangeClient connect(URL url, ExchangeHandler handler) throws RemotingException { if (url == null) { throw new IllegalArgumentException("url == null"); } if (handler == null) { throw new IllegalArgumentException("handler == null"); } url = url.addParameterIfAbsent(Constants.CODEC_KEY, "exchange"); return getExchanger(url).connect(url, handler); }
public static ExchangeClient connect(URL url, Replier<?> replier) throws RemotingException { return connect(url, new ChannelHandlerAdapter(), replier); }
public static ExchangeServer bind(String url, Replier<?> replier) throws RemotingException { return bind(URL.valueOf(url), replier); }
public static ExchangeServer bind(URL url, ExchangeHandler handler) throws RemotingException { if (url == null) { throw new IllegalArgumentException("url == null"); } if (handler == null) { throw new IllegalArgumentException("handler == null"); } url = url.addParameterIfAbsent(Constants.CODEC_KEY, "exchange"); return getExchanger(url).bind(url, handler); }
public static ExchangeClient connect(URL url, ChannelHandler handler, Replier<?> replier) throws RemotingException { return connect(url, new ExchangeHandlerDispatcher(replier, handler)); }
public static ExchangeServer bind(URL url, ChannelHandler handler, Replier<?> replier) throws RemotingException { return bind(url, new ExchangeHandlerDispatcher(replier, handler)); }
public static ExchangeClient connect(URL url, ExchangeHandler handler) throws RemotingException { if (url == null) { throw new IllegalArgumentException("url == null"); } if (handler == null) { throw new IllegalArgumentException("handler == null"); } url = url.addParameterIfAbsent(Constants.CODEC_KEY, "exchange"); return getExchanger(url).connect(url, handler); }
public static ExchangeClient connect(String url) throws RemotingException { return connect(URL.valueOf(url)); }
public static ExchangeServer bind(String url, ChannelHandler handler, Replier<?> replier) throws RemotingException { return bind(URL.valueOf(url), handler, replier); }
public static ExchangeServer bind(URL url, ExchangeHandler handler) throws RemotingException { if (url == null) { throw new IllegalArgumentException("url == null"); } if (handler == null) { throw new IllegalArgumentException("handler == null"); } url = url.addParameterIfAbsent(Constants.CODEC_KEY, "exchange"); return getExchanger(url).bind(url, handler); }
public static ExchangeClient connect(URL url) throws RemotingException { return connect(url, new ChannelHandlerAdapter(), null); }
public static ExchangeServer bind(URL url, Replier<?> replier) throws RemotingException { return bind(url, new ChannelHandlerAdapter(), replier); }