@Factory
@Requires(classes=com.google.cloud.pubsub.v1.Publisher.class)
public class PubSubConfigurationFactory
extends java.lang.Object
| Constructor and Description |
|---|
PubSubConfigurationFactory(PubSubConfigurationProperties pubSubConfigurationProperties,
GoogleCloudConfiguration googleCloudConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.core.CredentialsProvider |
credentialsProvider(com.google.auth.oauth2.GoogleCredentials credentials)
Returns a default
CredentialsProvider, allows users to override it and provide their own implementation. |
com.google.api.gax.core.ExecutorProvider |
publisherExecutorProvider() |
com.google.api.gax.rpc.TransportChannelProvider |
transportChannelProvider() |
public PubSubConfigurationFactory(PubSubConfigurationProperties pubSubConfigurationProperties, GoogleCloudConfiguration googleCloudConfiguration)
@Singleton public com.google.api.gax.core.ExecutorProvider publisherExecutorProvider()
ExecutorProvider@Singleton public com.google.api.gax.rpc.TransportChannelProvider transportChannelProvider()
TransportChannelProvideransportChannelProvider@Singleton public com.google.api.gax.core.CredentialsProvider credentialsProvider(com.google.auth.oauth2.GoogleCredentials credentials)
CredentialsProvider, allows users to override it and provide their own implementation.credentials - default credentials, if not overriden by user should be provided by GoogleCredentialsFactoryFixedCredentialsProvider holding the given credentials.