@Override default <T> List<Invoker<T>> route(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException { List<com.alibaba.dubbo.rpc.Invoker<T>> invs = invokers.stream().map(invoker -> new com.alibaba.dubbo.rpc.Invoker.CompatibleInvoker<T>(invoker)). collect(Collectors.toList()); List<com.alibaba.dubbo.rpc.Invoker<T>> res = this.route(invs, new com.alibaba.dubbo.common.URL(url), new com.alibaba.dubbo.rpc.Invocation.CompatibleInvocation(invocation)); return res.stream().map(inv -> inv.getOriginal()).collect(Collectors.toList()); }
@Override default <T> List<Invoker<T>> route(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException { List<com.alibaba.dubbo.rpc.Invoker<T>> invs = invokers.stream().map(invoker -> new com.alibaba.dubbo.rpc.Invoker.CompatibleInvoker<T>(invoker)). collect(Collectors.toList()); List<com.alibaba.dubbo.rpc.Invoker<T>> res = this.route(invs, new com.alibaba.dubbo.common.URL(url), new com.alibaba.dubbo.rpc.Invocation.CompatibleInvocation(invocation)); return res.stream().map(inv -> inv.getOriginal()).collect(Collectors.toList()); }
@Override default <T> Invoker<T> select(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException { List<com.alibaba.dubbo.rpc.Invoker<T>> invs = invokers.stream(). map(invoker -> new com.alibaba.dubbo.rpc.Invoker.CompatibleInvoker<T>(invoker)). collect(Collectors.toList()); return select(invs, new com.alibaba.dubbo.common.URL(url), new com.alibaba.dubbo.rpc.Invocation.CompatibleInvocation(invocation)); } }
@Override public Invoker<?> getInvoker() { return new Invoker.CompatibleInvoker(delegate.getInvoker()); }
@Override public Invoker<T> getInvoker() { return new Invoker.CompatibleInvoker<>(delegate.getInvoker()); }
@Override default <T> T getProxy(Invoker<T> invoker) throws RpcException { return getProxy(new com.alibaba.dubbo.rpc.Invoker.CompatibleInvoker<>(invoker)); }
@Override default void referred(Invoker<?> invoker) throws RpcException { this.referred(new com.alibaba.dubbo.rpc.Invoker.CompatibleInvoker<>(invoker)); }
@Override public Invoker<T> getInvoker() { return new Invoker.CompatibleInvoker<>(delegate.getInvoker()); }
@Override default org.apache.dubbo.rpc.Result invoke(org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation) throws org.apache.dubbo.rpc.RpcException { Result.CompatibleResult result = (Result.CompatibleResult) invoke(new Invoker.CompatibleInvoker<>(invoker), new Invocation.CompatibleInvocation(invocation)); return result.getDelegate(); } }
@Override default <T> Invoker<T> select(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException { List<com.alibaba.dubbo.rpc.Invoker<T>> invs = invokers.stream(). map(invoker -> new com.alibaba.dubbo.rpc.Invoker.CompatibleInvoker<T>(invoker)). collect(Collectors.toList()); return select(invs, new com.alibaba.dubbo.common.URL(url), new com.alibaba.dubbo.rpc.Invocation.CompatibleInvocation(invocation)); } }
@Override default <T> T getProxy(Invoker<T> invoker, boolean generic) throws RpcException { return getProxy(new com.alibaba.dubbo.rpc.Invoker.CompatibleInvoker<>(invoker), generic); }
@Override default <T> T getProxy(Invoker<T> invoker) throws RpcException { return getProxy(new com.alibaba.dubbo.rpc.Invoker.CompatibleInvoker<>(invoker)); }
@Override default void referred(Invoker<?> invoker) throws RpcException { this.referred(new com.alibaba.dubbo.rpc.Invoker.CompatibleInvoker<>(invoker)); }
@Override public Invoker<?> getInvoker() { return new Invoker.CompatibleInvoker(delegate.getInvoker()); }
@Override default <T> org.apache.dubbo.rpc.Exporter<T> export(org.apache.dubbo.rpc.Invoker<T> invoker) throws RpcException { return this.export(new Invoker.CompatibleInvoker<>(invoker)); }
@Override default org.apache.dubbo.rpc.Result invoke(org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation) throws org.apache.dubbo.rpc.RpcException { Result.CompatibleResult result = (Result.CompatibleResult) invoke(new Invoker.CompatibleInvoker<>(invoker), new Invocation.CompatibleInvocation(invocation)); return result.getDelegate(); } }
@Override default void destroyed(Invoker<?> invoker) { this.destroyed(new com.alibaba.dubbo.rpc.Invoker.CompatibleInvoker<>(invoker)); } }
@Override default void destroyed(Invoker<?> invoker) { this.destroyed(new com.alibaba.dubbo.rpc.Invoker.CompatibleInvoker<>(invoker)); } }
@Override default <T> T getProxy(Invoker<T> invoker, boolean generic) throws RpcException { return getProxy(new com.alibaba.dubbo.rpc.Invoker.CompatibleInvoker<>(invoker), generic); }
@Override default <T> org.apache.dubbo.rpc.Exporter<T> export(org.apache.dubbo.rpc.Invoker<T> invoker) throws RpcException { return this.export(new Invoker.CompatibleInvoker<>(invoker)); }