@Override public RemoveCacheDirectiveResponseProto removeCacheDirective(RpcController controller, RemoveCacheDirectiveRequestProto request) throws ServiceException { try { server.removeCacheDirective(request.getId()); return RemoveCacheDirectiveResponseProto. newBuilder().build(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public void removeCacheDirective(long id) throws IOException { try { rpcProxy.removeCacheDirective(null, RemoveCacheDirectiveRequestProto.newBuilder(). setId(id).build()); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }