Package io.grpc.internal
Class MetadataApplierImpl
java.lang.Object
io.grpc.CallCredentials.MetadataApplier
io.grpc.internal.MetadataApplierImpl
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallOptions
private final Context
(package private) DelayedStream
(package private) boolean
private final MetadataApplierImpl.MetadataApplierListener
private final Object
private final MethodDescriptor
<?, ?> private final Metadata
private ClientStream
private final ClientStreamTracer[]
private final ClientTransport
-
Constructor Summary
ConstructorsConstructorDescriptionMetadataApplierImpl
(ClientTransport transport, MethodDescriptor<?, ?> method, Metadata origHeaders, CallOptions callOptions, MetadataApplierImpl.MetadataApplierListener listener, ClientStreamTracer[] tracers) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when headers are successfully generated.void
Called when there has been an error when preparing the headers.private void
finalizeWith
(ClientStream stream) (package private) ClientStream
Return a stream on which the RPC will run on.
-
Field Details
-
transport
-
method
-
origHeaders
-
callOptions
-
ctx
-
listener
-
tracers
-
lock
-
returnedStream
-
finalized
boolean finalized -
delayedStream
DelayedStream delayedStream
-
-
Constructor Details
-
MetadataApplierImpl
MetadataApplierImpl(ClientTransport transport, MethodDescriptor<?, ?> method, Metadata origHeaders, CallOptions callOptions, MetadataApplierImpl.MetadataApplierListener listener, ClientStreamTracer[] tracers)
-
-
Method Details
-
apply
Description copied from class:CallCredentials.MetadataApplier
Called when headers are successfully generated. They will be merged into the original headers.- Specified by:
apply
in classCallCredentials.MetadataApplier
-
fail
Description copied from class:CallCredentials.MetadataApplier
Called when there has been an error when preparing the headers. This will fail the RPC.- Specified by:
fail
in classCallCredentials.MetadataApplier
-
finalizeWith
-
returnStream
ClientStream returnStream()Return a stream on which the RPC will run on.
-