@Override public void callMethod( @NotNull Descriptors.MethodDescriptor method, @NotNull RpcController controller, @NotNull Message request, @NotNull RpcCallback<Message> done) { try { done.run(service.callBlockingMethod(method, controller, request)); } catch (ServiceException e) { log.error("Blocking method error " + method.getFullName(), e); done.run(null); } }
@NotNull @Override public Message getResponsePrototype(@NotNull Descriptors.MethodDescriptor method) { return service.getResponsePrototype(method); }
@NotNull @Override public Descriptors.ServiceDescriptor getDescriptorForType() { return service.getDescriptorForType(); }