@BetaApi @InternalExtensionOnly public final class InstantiatingHttpJsonChannelProvider extends Object implements com.google.api.gax.rpc.TransportChannelProvider
ManagedHttpJsonChannel with a number of configured inputs every time getChannel(...) is called.
These inputs include a port, a service address, and credentials.
The credentials can either be supplied directly (by providing a FixedCredentialsProvider to Builder.setCredentialsProvider()) or acquired implicitly from Application Default Credentials (by providing a GoogleCredentialsProvider to Builder.setCredentialsProvider()).
The client lib header and generator header values are used to form a value that goes into the http header of requests to the service.
| Modifier and Type | Class and Description |
|---|---|
static class |
InstantiatingHttpJsonChannelProvider.Builder |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsPoolSize() |
String |
getEndpoint()
The endpoint to be used for the channel.
|
com.google.api.gax.rpc.TransportChannel |
getTransportChannel() |
String |
getTransportName() |
boolean |
needsEndpoint() |
boolean |
needsExecutor() |
boolean |
needsHeaders() |
static InstantiatingHttpJsonChannelProvider.Builder |
newBuilder() |
boolean |
shouldAutoClose() |
InstantiatingHttpJsonChannelProvider.Builder |
toBuilder() |
com.google.api.gax.rpc.TransportChannelProvider |
withEndpoint(String endpoint) |
com.google.api.gax.rpc.TransportChannelProvider |
withExecutor(ScheduledExecutorService executor) |
com.google.api.gax.rpc.TransportChannelProvider |
withHeaders(Map<String,String> headers) |
com.google.api.gax.rpc.TransportChannelProvider |
withPoolSize(int size) |
public boolean needsExecutor()
needsExecutor in interface com.google.api.gax.rpc.TransportChannelProviderpublic com.google.api.gax.rpc.TransportChannelProvider withExecutor(ScheduledExecutorService executor)
withExecutor in interface com.google.api.gax.rpc.TransportChannelProviderpublic boolean needsHeaders()
needsHeaders in interface com.google.api.gax.rpc.TransportChannelProviderpublic com.google.api.gax.rpc.TransportChannelProvider withHeaders(Map<String,String> headers)
withHeaders in interface com.google.api.gax.rpc.TransportChannelProviderpublic boolean needsEndpoint()
needsEndpoint in interface com.google.api.gax.rpc.TransportChannelProviderpublic com.google.api.gax.rpc.TransportChannelProvider withEndpoint(String endpoint)
withEndpoint in interface com.google.api.gax.rpc.TransportChannelProvider@BetaApi(value="The surface for customizing pool size is not stable yet and may change in the future.") public boolean acceptsPoolSize()
acceptsPoolSize in interface com.google.api.gax.rpc.TransportChannelProvider@BetaApi(value="The surface for customizing pool size is not stable yet and may change in the future.") public com.google.api.gax.rpc.TransportChannelProvider withPoolSize(int size)
withPoolSize in interface com.google.api.gax.rpc.TransportChannelProviderpublic String getTransportName()
getTransportName in interface com.google.api.gax.rpc.TransportChannelProviderpublic com.google.api.gax.rpc.TransportChannel getTransportChannel()
throws IOException
getTransportChannel in interface com.google.api.gax.rpc.TransportChannelProviderIOExceptionpublic String getEndpoint()
public boolean shouldAutoClose()
shouldAutoClose in interface com.google.api.gax.rpc.TransportChannelProviderpublic InstantiatingHttpJsonChannelProvider.Builder toBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder newBuilder()