Package io.grpc
Class CompositeCallCredentials.WrappingMetadataApplier
- java.lang.Object
-
- io.grpc.CallCredentials.MetadataApplier
-
- io.grpc.CompositeCallCredentials.WrappingMetadataApplier
-
- Enclosing class:
- CompositeCallCredentials
private final class CompositeCallCredentials.WrappingMetadataApplier extends CallCredentials.MetadataApplier
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.Executor
appExecutor
private Context
context
private CallCredentials.MetadataApplier
delegate
private CallCredentials.RequestInfo
requestInfo
-
Constructor Summary
Constructors Constructor Description WrappingMetadataApplier(CallCredentials.RequestInfo requestInfo, java.util.concurrent.Executor appExecutor, CallCredentials.MetadataApplier delegate, Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Metadata headers)
Called when headers are successfully generated.void
fail(Status status)
Called when there has been an error when preparing the headers.
-
-
-
Field Detail
-
requestInfo
private final CallCredentials.RequestInfo requestInfo
-
appExecutor
private final java.util.concurrent.Executor appExecutor
-
delegate
private final CallCredentials.MetadataApplier delegate
-
context
private final Context context
-
-
Constructor Detail
-
WrappingMetadataApplier
public WrappingMetadataApplier(CallCredentials.RequestInfo requestInfo, java.util.concurrent.Executor appExecutor, CallCredentials.MetadataApplier delegate, Context context)
-
-
Method Detail
-
apply
public void apply(Metadata headers)
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
public void fail(Status status)
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
-
-