CallCredentials2.MetadataApplier
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1914") public abstract static class CallCredentials.MetadataApplier extends java.lang.Object
Exactly one of its methods must be called to make the RPC proceed.
Constructor | Description |
---|---|
MetadataApplier() |
Modifier and Type | Method | Description |
---|---|---|
abstract void |
apply(Metadata headers) |
Called when headers are successfully generated.
|
abstract void |
fail(Status status) |
Called when there has been an error when preparing the headers.
|