Package io.deephaven.web.client.api.grpc
Class GrpcTransportOptions
java.lang.Object
io.deephaven.web.client.api.grpc.GrpcTransportOptions
Options for creating a gRPC stream transport instance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
True to enable debug logging for this stream.Callback for when a chunk of data is received.Callback for when the stream ends, with an error instance if it can be provided.Callback for when headers and status are received.Internal copy of options, to be used for fallback.elemental2.dom.URL
The gRPC method URL. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GrpcTransportOptions
from
(TransportOptions options) Convert aTransportOptions
instance to aGrpcTransportOptions
instance.
-
Field Details
-
url
public elemental2.dom.URL urlThe gRPC method URL. -
debug
public boolean debugTrue to enable debug logging for this stream. -
onHeaders
Callback for when headers and status are received. The headers are a map of header names to values, and the status is the HTTP status code. If the connection could not be made, the status should be 0. -
onChunk
Callback for when a chunk of data is received. -
onEnd
Callback for when the stream ends, with an error instance if it can be provided. Note that the present implementation does not consume errors, even if provided. -
originalOptions
Internal copy of options, to be used for fallback.
-
-
Constructor Details
-
GrpcTransportOptions
public GrpcTransportOptions()
-
-
Method Details
-
from
Convert aTransportOptions
instance to aGrpcTransportOptions
instance.
-