public abstract static class ClientStreamTracer.Factory extends Object
ClientStreamTracer
.Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
ClientStreamTracer |
newClientStreamTracer(CallOptions callOptions,
Metadata headers)
Deprecated.
use
#newClientStreamTracer(StreamInfo, Metadata) instead |
ClientStreamTracer |
newClientStreamTracer(ClientStreamTracer.StreamInfo info,
Metadata headers)
Creates a
ClientStreamTracer for a new client stream. |
@Deprecated public ClientStreamTracer newClientStreamTracer(CallOptions callOptions, Metadata headers)
#newClientStreamTracer(StreamInfo, Metadata)
insteadClientStreamTracer
for a new client stream.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.public ClientStreamTracer newClientStreamTracer(ClientStreamTracer.StreamInfo info, Metadata headers)
ClientStreamTracer
for a new client stream. This is called inside the
transport when it's creating the stream.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.