Package io.grpc

Class CallCredentials.MetadataApplier

  • Enclosing class:
    CallCredentials

    public abstract static class CallCredentials.MetadataApplier
    extends java.lang.Object
    The outlet of the produced headers. Not thread-safe.

    Exactly one of its methods must be called to make the RPC proceed.

    • Constructor Summary

      Constructors 
      Constructor Description
      MetadataApplier()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetadataApplier

        public MetadataApplier()
    • Method Detail

      • apply

        public abstract void apply​(Metadata headers)
        Called when headers are successfully generated. They will be merged into the original headers.
      • fail

        public abstract void fail​(Status status)
        Called when there has been an error when preparing the headers. This will fail the RPC.