Class MetadataApplierImpl
java.lang.Object
io.grpc.CallCredentials.MetadataApplier
io.grpc.internal.MetadataApplierImpl
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallOptionsprivate final Context(package private) DelayedStream(package private) booleanprivate final MetadataApplierImpl.MetadataApplierListenerprivate final Objectprivate final MethodDescriptor<?, ?> private final Metadataprivate ClientStreamprivate 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 TypeMethodDescriptionvoidCalled when headers are successfully generated.voidCalled when there has been an error when preparing the headers.private voidfinalizeWith(ClientStream stream) (package private) ClientStreamReturn 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.MetadataApplierCalled when headers are successfully generated. They will be merged into the original headers.- Specified by:
applyin classCallCredentials.MetadataApplier
-
fail
Description copied from class:CallCredentials.MetadataApplierCalled when there has been an error when preparing the headers. This will fail the RPC.- Specified by:
failin classCallCredentials.MetadataApplier
-
finalizeWith
-
returnStream
ClientStream returnStream()Return a stream on which the RPC will run on.
-