< O extends Message > JsonResponseFuture < O > newProvisionalResponse ( ClientMethod < O > method ) { long requestId = RANDOM . nextLong ( ) ; JsonResponseFuture < O > outputFuture = new JsonResponseFuture <> ( requestId , method ) ; inFlightRequests . put ( requestId , outputFuture ) ; return outputFuture ; }
Returns a new provisional response suited to receive results of a given protobuf message type .