Interface APIHostClientInterface
- All Superinterfaces:
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 Summary
Methods inherited from interface com.google.apphosting.runtime.anyrpc.AnyRpcClientContextFactory
newClientContext
-
Method Details
-
call
void call(AnyRpcClientContext ctx, RuntimePb.APIRequest req, AnyRpcCallback<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 previousdisable()
call had stopped their creation, this will allow it again. Otherwise this method has no effect.
-