Package com.google.api.gax.httpjson
Class InstantiatingHttpJsonChannelProvider
java.lang.Object
com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider
- All Implemented Interfaces:
TransportChannelProvider
@InternalExtensionOnly
public final class InstantiatingHttpJsonChannelProvider
extends Object
implements TransportChannelProvider
InstantiatingHttpJsonChannelProvider is a TransportChannelProvider which constructs a
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.REST transport channel doesn't support channel poolingThe endpoint to be used for the channel.booleanbooleanbooleanDeprecated.If executor is not set, this channel provider will create channels with default executor defined inManagedHttpJsonChannel.booleanbooleanwithCredentials(com.google.auth.Credentials credentials) withEndpoint(String endpoint) withExecutor(Executor executor) withExecutor(ScheduledExecutorService executor) Deprecated.withHeaders(Map<String, String> headers) withPoolSize(int size) Deprecated.REST transport channel doesn't support channel poolingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.api.gax.rpc.TransportChannelProvider
needsMtlsEndpoint, withMtlsEndpoint, withUseS2A
-
Method Details
-
needsExecutor
Deprecated.If executor is not set, this channel provider will create channels with default executor defined inManagedHttpJsonChannel.- Specified by:
needsExecutorin interfaceTransportChannelProvider
-
withExecutor
Deprecated.- Specified by:
withExecutorin interfaceTransportChannelProvider
-
withExecutor
- Specified by:
withExecutorin interfaceTransportChannelProvider
-
needsHeaders
public boolean needsHeaders()- Specified by:
needsHeadersin interfaceTransportChannelProvider
-
withHeaders
- Specified by:
withHeadersin interfaceTransportChannelProvider
-
needsEndpoint
public boolean needsEndpoint()- Specified by:
needsEndpointin interfaceTransportChannelProvider
-
withEndpoint
- Specified by:
withEndpointin interfaceTransportChannelProvider
-
acceptsPoolSize
Deprecated.REST transport channel doesn't support channel pooling- Specified by:
acceptsPoolSizein interfaceTransportChannelProvider
-
withPoolSize
Deprecated.REST transport channel doesn't support channel pooling- Specified by:
withPoolSizein interfaceTransportChannelProvider
-
getTransportName
- Specified by:
getTransportNamein interfaceTransportChannelProvider
-
getTransportChannel
- Specified by:
getTransportChannelin interfaceTransportChannelProvider- Throws:
IOException
-
needsCredentials
public boolean needsCredentials()- Specified by:
needsCredentialsin interfaceTransportChannelProvider
-
withCredentials
- Specified by:
withCredentialsin interfaceTransportChannelProvider
-
getEndpoint
The endpoint to be used for the channel.- Specified by:
getEndpointin interfaceTransportChannelProvider
-
shouldAutoClose
public boolean shouldAutoClose()- Specified by:
shouldAutoClosein interfaceTransportChannelProvider
-
toBuilder
-
newBuilder
-