private <ReqT, RespT> RetryingUnaryOperation<ReqT, RespT> createUnaryListener( ReqT request, BigtableAsyncRpc<ReqT, RespT> rpc, String tableName) { CallOptions callOptions = getCallOptions(rpc.getMethodDescriptor(), request); Metadata metadata = createMetadata(tableName); return new RetryingUnaryOperation<>( retryOptions, request, rpc, callOptions, retryExecutorService, metadata, CLOCK); }
private <ReqT, RespT> RetryingStreamOperation<ReqT, RespT> createStreamingListener( ReqT request, BigtableAsyncRpc<ReqT, RespT> rpc, String tableName) { CallOptions callOptions = getCallOptions(rpc.getMethodDescriptor(), request); Metadata metadata = createMetadata(tableName); return new RetryingStreamOperation<>( retryOptions, request, rpc, callOptions, retryExecutorService, metadata, CLOCK); }
private RetryingReadRowsOperation createReadRowsRetryListener(ReadRowsRequest request, StreamObserver<FlatRow> observer) { return new RetryingReadRowsOperation( observer, retryOptions, request, readRowsAsync, getCallOptions(readRowsAsync.getMethodDescriptor(), request), retryExecutorService, createMetadata(request.getTableName()), CLOCK); }
private RetryingMutateRowsOperation createMutateRowsOperation(MutateRowsRequest request) { if (shouldOverrideAppProfile(request.getAppProfileId())) { request = request.toBuilder().setAppProfileId(clientDefaultAppProfileId).build(); } CallOptions callOptions = getCallOptions(mutateRowsRpc.getMethodDescriptor(), request); Metadata metadata = createMetadata(request.getTableName()); return new RetryingMutateRowsOperation(retryOptions, request, mutateRowsRpc, callOptions, retryExecutorService, metadata, CLOCK); }