public interface APIHostClientInterface extends AnyRpcClientContextFactory
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.
| Modifier and Type | Method and Description |
|---|---|
void |
call(AnyRpcClientContext ctx,
com.google.apphosting.base.protos.RuntimePb.APIRequest req,
AnyRpcCallback<com.google.apphosting.base.protos.RuntimePb.APIResponse> cb) |
void |
disable()
Closes any outgoing connections using this client and prevents new ones from being created.
|
void |
enable()
Allows new connections to be created from this client.
|
newClientContextvoid call(AnyRpcClientContext ctx, com.google.apphosting.base.protos.RuntimePb.APIRequest req, AnyRpcCallback<com.google.apphosting.base.protos.RuntimePb.APIResponse> cb)
void disable()
UnsupportedOperationException - if this implementation does not support disable/enable.void enable()
disable() call had
stopped their creation, this will allow it again. Otherwise this method has no effect.Copyright © 2022. All rights reserved.