Class DelayedClientTransport.PendingStream
java.lang.Object
io.grpc.internal.DelayedStream
io.grpc.internal.DelayedClientTransport.PendingStream
- All Implemented Interfaces:
ClientStream, Stream
- Enclosing class:
DelayedClientTransport
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LoadBalancer.PickSubchannelArgsprivate final Contextprivate final ClientStreamTracer[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePendingStream(LoadBalancer.PickSubchannelArgs args, ClientStreamTracer[] tracers) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTimeoutInsight(InsightBuilder insight) Append information that will be included in the locally generated DEADLINE_EXCEEDED errors to the givenInsightBuilder, in order to tell the user about the state of the stream so that they can better diagnose the cause of the error.voidAbnormally terminates the stream.private RunnablecreateRealStream(ClientTransport transport) Runnable may be null.protected voidonEarlyCancellation(Status reason) Methods inherited from class DelayedStream
flush, getAttributes, getRealStream, halfClose, isReady, optimizeForDirectExecutor, request, setAuthority, setCompressor, setDeadline, setDecompressorRegistry, setFullStreamDecompression, setMaxInboundMessageSize, setMaxOutboundMessageSize, setMessageCompression, setStream, start, writeMessage
-
Field Details
-
args
-
context
-
tracers
-
-
Constructor Details
-
PendingStream
-
-
Method Details
-
createRealStream
Runnable may be null. -
cancel
Description copied from interface:ClientStreamAbnormally terminates the stream. After calling this method, no further messages will be sent or received, however it may still be possible to receive buffered messages for a brief period untilClientStreamListener.closed(Status, ClientStreamListener.RpcProgress, Metadata)is called. This method may only be called afterClientStream.start(ClientStreamListener), but else is safe to be called at any time and multiple times and from any thread.- Specified by:
cancelin interfaceClientStream- Overrides:
cancelin classDelayedStream- Parameters:
reason- must be non-OK
-
onEarlyCancellation
- Overrides:
onEarlyCancellationin classDelayedStream
-
appendTimeoutInsight
Description copied from interface:ClientStreamAppend information that will be included in the locally generated DEADLINE_EXCEEDED errors to the givenInsightBuilder, in order to tell the user about the state of the stream so that they can better diagnose the cause of the error.- Specified by:
appendTimeoutInsightin interfaceClientStream- Overrides:
appendTimeoutInsightin classDelayedStream
-