public class ConnectionWorkerPool extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionWorkerPool.Settings
Settings for connection pool.
|
| Constructor and Description |
|---|
ConnectionWorkerPool(long maxInflightRequests,
long maxInflightBytes,
com.google.api.gax.batching.FlowController.LimitExceededBehavior limitExceededBehavior,
String traceId,
BigQueryWriteClient client,
boolean ownsBigQueryWriteClient) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<AppendRowsResponse> |
append(StreamWriter streamWriter,
ProtoRows rows)
Distributes the writing of a message to an underlying connection.
|
com.google.api.core.ApiFuture<AppendRowsResponse> |
append(StreamWriter streamWriter,
ProtoRows rows,
long offset)
Distributes the writing of a message to an underlying connection.
|
void |
close(StreamWriter streamWriter)
Close the stream writer.
|
static void |
setOptions(ConnectionWorkerPool.Settings settings)
Sets static connection pool options.
|
public ConnectionWorkerPool(long maxInflightRequests,
long maxInflightBytes,
com.google.api.gax.batching.FlowController.LimitExceededBehavior limitExceededBehavior,
String traceId,
BigQueryWriteClient client,
boolean ownsBigQueryWriteClient)
public static void setOptions(ConnectionWorkerPool.Settings settings)
Note: this method should be triggered prior to the construction of connection pool.
public com.google.api.core.ApiFuture<AppendRowsResponse> append(StreamWriter streamWriter, ProtoRows rows)
public com.google.api.core.ApiFuture<AppendRowsResponse> append(StreamWriter streamWriter, ProtoRows rows, long offset)
public void close(StreamWriter streamWriter)
Copyright © 2022 Google LLC. All rights reserved.