/** * Creates a {@code ServerCallHandler} for a unary call method of the service. * * @param method an adaptor to the actual method on the service implementation. */ public static <ReqT, RespT> ServerCallHandler<ReqT, RespT> asyncUnaryCall( final UnaryMethod<ReqT, RespT> method) { return asyncUnaryRequestCall(method); }
/** * Creates a {@code ServerCallHandler} for a server streaming method of the service. * * @param method an adaptor to the actual method on the service implementation. */ public static <ReqT, RespT> ServerCallHandler<ReqT, RespT> asyncServerStreamingCall( final ServerStreamingMethod<ReqT, RespT> method) { return asyncUnaryRequestCall(method); }