Interface APIHostClientInterface

  • All Superinterfaces:
    AnyRpcClientContextFactory

    public interface APIHostClientInterface
    extends AnyRpcClientContextFactory
    RPC-agnostic equivalent of APIHost.ClientInterface, plus an RPC client context factory method.

    If you add methods to APIHost in apphosting/base/runtime.proto, you need to remember to add them here too. Note that we omit the blocking version of the methods, since they are currently unused.

    • Method Detail

      • call

        void call​(AnyRpcClientContext ctx,
                  com.google.apphosting.base.protos.RuntimePb.APIRequest req,
                  AnyRpcCallback<com.google.apphosting.base.protos.RuntimePb.APIResponse> cb)
      • disable

        void disable()
        Closes any outgoing connections using this client and prevents new ones from being created.
        Throws:
        UnsupportedOperationException - if this implementation does not support disable/enable.
      • enable

        void enable()
        Allows new connections to be created from this client. If a previous disable() call had stopped their creation, this will allow it again. Otherwise this method has no effect.