public abstract class SDKClient<T extends io.grpc.stub.AbstractStub<T>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected T |
blockingStub |
| Constructor and Description |
|---|
SDKClient(String host,
InputStream serviceAccount) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract CredentialsManager |
getCredentialsManager(InputStream serviceAccount,
String host) |
protected abstract T |
newBlockingStub(io.grpc.ManagedChannel channel) |
void |
shutdown() |
public SDKClient(String host, InputStream serviceAccount) throws SDKException
SDKExceptionpublic void shutdown()
throws SDKException
SDKExceptionprotected abstract CredentialsManager getCredentialsManager(InputStream serviceAccount, String host) throws IOException
IOException - if there's an issue with the input streamprotected abstract T newBlockingStub(io.grpc.ManagedChannel channel)
channel - the channel to use for the blocking stub
This should create a new blocking stub and set the instance property to be used later
It should also set the headersCopyright © 2018. All rights reserved.