use of org.apache.gobblin.restli.throttling.PermitsRequestBuilders in project incubator-gobblin by apache.
the class RestClientRequestSender method sendRequest.
@Override
public void sendRequest(PermitRequest request, Callback<Response<PermitAllocation>> callback) {
PermitsGetRequestBuilder getBuilder = new PermitsRequestBuilders().get();
Request<PermitAllocation> fullRequest = getBuilder.id(new ComplexResourceKey<>(request, new EmptyRecord())).build();
getRestClient().sendRequest(fullRequest, decorateCallback(request, callback));
}
Aggregations