Class InstantiatingHttpJsonChannelProvider.Builder
- Enclosing class:
- InstantiatingHttpJsonChannelProvider
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setEndpoint(String endpoint) Sets the endpoint used to reach the service, eg "localhost:8080".setExecutor(Executor executor) Sets the Executor for this TransportChannelProvider.setExecutorProvider(ExecutorProvider executorProvider) Deprecated.setHeaderProvider(HeaderProvider headerProvider) Sets the HeaderProvider for this TransportChannelProvider.setHttpTransport(com.google.api.client.http.HttpTransport httpTransport) Sets the HTTP transport to be used.setInterceptorProvider(HttpJsonInterceptorProvider interceptorProvider) Sets the GrpcInterceptorProvider for this TransportChannelProvider.
-
Method Details
-
setExecutor
Sets the Executor for this TransportChannelProvider.This is optional; if it is not provided, needsExecutor() will return true, meaning that an Executor must be provided when getChannel is called on the constructed TransportChannelProvider instance. Note: InstantiatingHttpJsonChannelProvider will automatically provide its own Executor in this circumstance when it calls getChannel.
-
setExecutorProvider
@Deprecated public InstantiatingHttpJsonChannelProvider.Builder setExecutorProvider(ExecutorProvider executorProvider) Deprecated.Please usesetExecutor(Executor). -
setHeaderProvider
public InstantiatingHttpJsonChannelProvider.Builder setHeaderProvider(HeaderProvider headerProvider) Sets the HeaderProvider for this TransportChannelProvider.This is optional; if it is not provided, needsHeaders() will return true, meaning that headers must be provided when getChannel is called on the constructed TransportChannelProvider instance.
-
setInterceptorProvider
public InstantiatingHttpJsonChannelProvider.Builder setInterceptorProvider(HttpJsonInterceptorProvider interceptorProvider) Sets the GrpcInterceptorProvider for this TransportChannelProvider.The provider will be called once for each underlying gRPC ManagedChannel that is created. It is recommended to return a new list of new interceptors on each call so that interceptors are not shared among channels, but this is not required.
-
setEndpoint
Sets the endpoint used to reach the service, eg "localhost:8080". -
setHttpTransport
public InstantiatingHttpJsonChannelProvider.Builder setHttpTransport(com.google.api.client.http.HttpTransport httpTransport) Sets the HTTP transport to be used. -
getEndpoint
-
build
-
setExecutor(Executor).