Posts
Showing posts from December, 2019
Finagle
- Get link
- X
- Other Apps
Build request: RequestBuilder requestBuilder = new RequestBuilder() // custom class .withMethod(method) .withHeader(xxx, "xxx") .withPath(endpoint) .withParams(request.getPathParams()) .withQueryParams(request.getQueryParams()); Service<Request, Response> restService = restServiceProvider.getService(serviceLabel); Finagle Call: final Future<O> responseFuture = filter.apply(request, restService); final O result try { result = Await.result(responseFuture, Duration.fromMilliseconds(config.getTotalRequestTimeout())); } ca...