Class StreamConnection
java.lang.Object
com.google.cloud.bigquery.storage.v1beta2.StreamConnection
Deprecated.
StreamConnection is responsible for writing requests to a GRPC bidirecional connection.
StreamWriter creates a connection. Two callback functions are necessary: request_callback and done_callback. Request callback is used for every request, and done callback is used to notify the user that the connection is closed and no more callbacks will be received from this connection.
The stream writer will accept all the requests without flow control, and makes the callbacks in receiving order.
It's user's responsibility to do the flow control and maintain the lifetime of the requests.
This client lib is deprecated, please use v1 instead.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Deprecated.Invoked when server closes the connection.static interface
Deprecated.Invoked when a response is received from the server. -
Constructor Summary
ConstructorsConstructorDescriptionStreamConnection
(BigQueryWriteClient client, StreamConnection.RequestCallback requestCallback, StreamConnection.DoneCallback doneCallback) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.Close the bi-directional stream connection.void
send
(AppendRowsRequest request) Deprecated.Sends a request to the bi-directional stream connection.
-
Constructor Details
-
StreamConnection
public StreamConnection(BigQueryWriteClient client, StreamConnection.RequestCallback requestCallback, StreamConnection.DoneCallback doneCallback) Deprecated.
-
-
Method Details
-
send
Deprecated.Sends a request to the bi-directional stream connection.- Parameters:
request
- request to send.
-
close
public void close()Deprecated.Close the bi-directional stream connection.
-