Package io.grpc
Class ClientStreamTracer.Factory
- java.lang.Object
-
- io.grpc.ClientStreamTracer.Factory
-
- Enclosing class:
- ClientStreamTracer
public abstract static class ClientStreamTracer.Factory extends java.lang.ObjectFactory class forClientStreamTracer.
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ClientStreamTracernewClientStreamTracer(CallOptions callOptions, Metadata headers)Deprecated.ClientStreamTracernewClientStreamTracer(ClientStreamTracer.StreamInfo info, Metadata headers)Creates aClientStreamTracerfor a new client stream.
-
-
-
Method Detail
-
newClientStreamTracer
@Deprecated public ClientStreamTracer newClientStreamTracer(CallOptions callOptions, Metadata headers)
Deprecated.Creates aClientStreamTracerfor a new client stream.- Parameters:
callOptions- the effective CallOptions of the callheaders- the mutable headers of the stream. It can be safely mutated within this method. It should not be saved because it is not safe for read or write after the method returns.
-
newClientStreamTracer
public ClientStreamTracer newClientStreamTracer(ClientStreamTracer.StreamInfo info, Metadata headers)
Creates aClientStreamTracerfor a new client stream. This is called inside the transport when it's creating the stream.- Parameters:
info- information about the streamheaders- the mutable headers of the stream. It can be safely mutated within this method. Changes made to it will be sent by the stream. It should not be saved because it is not safe for read or write after the method returns.- Since:
- 1.20.0
-
-