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.ExecutorappExecutorprivate Contextcontextprivate CallCredentials.MetadataApplierdelegateprivate CallCredentials.RequestInforequestInfo
-
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 voidapply(Metadata headers)Called when headers are successfully generated.voidfail(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.MetadataApplierCalled when headers are successfully generated. They will be merged into the original headers.- Specified by:
applyin classCallCredentials.MetadataApplier
-
fail
public void fail(Status status)
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
-
-