@Configuration(proxyBeanMethods=false) @AutoConfigureAfter(value=GcpContextAutoConfiguration.class) @ConditionalOnProperty(value="spring.cloud.gcp.pubsub.enabled", matchIfMissing=true) @ConditionalOnClass(value=PubSubTemplate.class) @EnableConfigurationProperties(value=GcpPubSubProperties.class) public class GcpPubSubAutoConfiguration extends Object
Constructor and Description |
---|
GcpPubSubAutoConfiguration(GcpPubSubProperties gcpPubSubProperties,
GcpProjectIdProvider gcpProjectIdProvider,
com.google.api.gax.core.CredentialsProvider credentialsProvider,
org.springframework.context.ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
PublisherFactory |
defaultPublisherFactory(com.google.api.gax.core.ExecutorProvider executorProvider,
org.springframework.beans.factory.ObjectProvider<com.google.api.gax.batching.BatchingSettings> batchingSettings,
org.springframework.beans.factory.ObjectProvider<com.google.api.gax.retrying.RetrySettings> retrySettings,
com.google.api.gax.rpc.TransportChannelProvider publisherTransportChannelProvider) |
SubscriberFactory |
defaultSubscriberFactory(Optional<com.google.api.gax.core.ExecutorProvider> executorProvider,
org.springframework.beans.factory.ObjectProvider<com.google.api.gax.core.ExecutorProvider> systemExecutorProvider,
org.springframework.beans.factory.ObjectProvider<com.google.api.gax.batching.FlowControlSettings> flowControlSettings,
org.springframework.beans.factory.ObjectProvider<com.google.api.core.ApiClock> apiClock,
org.springframework.beans.factory.ObjectProvider<com.google.api.gax.retrying.RetrySettings> retrySettings,
org.springframework.beans.factory.ObjectProvider<HealthTrackerRegistry> healthTrackerRegistry,
com.google.api.gax.rpc.TransportChannelProvider subscriberTransportChannelProvider) |
com.google.api.gax.batching.BatchingSettings |
publisherBatchSettings() |
com.google.api.gax.core.ExecutorProvider |
publisherExecutorProvider(org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler) |
com.google.api.gax.retrying.RetrySettings |
publisherRetrySettings() |
com.google.api.gax.rpc.TransportChannelProvider |
publisherTransportChannelProvider() |
Executor |
pubSubAcknowledgementExecutor() |
PubSubAdmin |
pubSubAdmin(TopicAdminClient topicAdminClient,
SubscriptionAdminClient subscriptionAdminClient) |
PubSubPublisherTemplate |
pubSubPublisherTemplate(PublisherFactory publisherFactory,
org.springframework.beans.factory.ObjectProvider<PubSubMessageConverter> pubSubMessageConverter) |
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler |
pubsubPublisherThreadPool() |
PubSubSubscriberTemplate |
pubSubSubscriberTemplate(SubscriberFactory subscriberFactory,
org.springframework.beans.factory.ObjectProvider<PubSubMessageConverter> pubSubMessageConverter,
org.springframework.beans.factory.ObjectProvider<Executor> asyncPullExecutor,
Executor ackExecutor) |
PubSubTemplate |
pubSubTemplate(PubSubPublisherTemplate pubSubPublisherTemplate,
PubSubSubscriberTemplate pubSubSubscriberTemplate) |
void |
registerSubscriberSettings() |
com.google.api.gax.rpc.TransportChannelProvider |
subscriberTransportChannelProvider() |
SubscriptionAdminClient |
subscriptionAdminClient(com.google.api.gax.rpc.TransportChannelProvider subscriberTransportChannelProvider) |
TopicAdminClient |
topicAdminClient(TopicAdminSettings topicAdminSettings) |
TopicAdminSettings |
topicAdminSettings(com.google.api.gax.rpc.TransportChannelProvider publisherTransportChannelProvider) |
public GcpPubSubAutoConfiguration(GcpPubSubProperties gcpPubSubProperties, GcpProjectIdProvider gcpProjectIdProvider, com.google.api.gax.core.CredentialsProvider credentialsProvider, org.springframework.context.ApplicationContext applicationContext) throws IOException
IOException
@Bean @ConditionalOnMissingBean(name="pubsubPublisherThreadPool") public org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler pubsubPublisherThreadPool()
@Bean @ConditionalOnMissingBean(name="publisherExecutorProvider") public com.google.api.gax.core.ExecutorProvider publisherExecutorProvider(@Qualifier(value="pubsubPublisherThreadPool") org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler)
@Bean @ConditionalOnMissingBean public PubSubPublisherTemplate pubSubPublisherTemplate(PublisherFactory publisherFactory, org.springframework.beans.factory.ObjectProvider<PubSubMessageConverter> pubSubMessageConverter)
@Bean @ConditionalOnMissingBean(name="pubSubAcknowledgementExecutor") public Executor pubSubAcknowledgementExecutor()
@Bean @ConditionalOnMissingBean public PubSubSubscriberTemplate pubSubSubscriberTemplate(SubscriberFactory subscriberFactory, org.springframework.beans.factory.ObjectProvider<PubSubMessageConverter> pubSubMessageConverter, @Qualifier(value="pubSubAsynchronousPullExecutor") org.springframework.beans.factory.ObjectProvider<Executor> asyncPullExecutor, @Qualifier(value="pubSubAcknowledgementExecutor") Executor ackExecutor)
@Bean @ConditionalOnMissingBean public PubSubTemplate pubSubTemplate(PubSubPublisherTemplate pubSubPublisherTemplate, PubSubSubscriberTemplate pubSubSubscriberTemplate)
@Bean @ConditionalOnMissingBean public SubscriberFactory defaultSubscriberFactory(@Qualifier(value="subscriberExecutorProvider") Optional<com.google.api.gax.core.ExecutorProvider> executorProvider, @Qualifier(value="subscriberSystemExecutorProvider") org.springframework.beans.factory.ObjectProvider<com.google.api.gax.core.ExecutorProvider> systemExecutorProvider, @Qualifier(value="subscriberFlowControlSettings") org.springframework.beans.factory.ObjectProvider<com.google.api.gax.batching.FlowControlSettings> flowControlSettings, @Qualifier(value="subscriberApiClock") org.springframework.beans.factory.ObjectProvider<com.google.api.core.ApiClock> apiClock, @Qualifier(value="subscriberRetrySettings") org.springframework.beans.factory.ObjectProvider<com.google.api.gax.retrying.RetrySettings> retrySettings, @Qualifier(value="healthTrackerRegistry") org.springframework.beans.factory.ObjectProvider<HealthTrackerRegistry> healthTrackerRegistry, @Qualifier(value="subscriberTransportChannelProvider") com.google.api.gax.rpc.TransportChannelProvider subscriberTransportChannelProvider)
@Bean @ConditionalOnMissingBean(name="publisherBatchSettings") public com.google.api.gax.batching.BatchingSettings publisherBatchSettings()
@Bean @ConditionalOnMissingBean(name="publisherRetrySettings") public com.google.api.gax.retrying.RetrySettings publisherRetrySettings()
@Bean @ConditionalOnMissingBean public PublisherFactory defaultPublisherFactory(@Qualifier(value="publisherExecutorProvider") com.google.api.gax.core.ExecutorProvider executorProvider, @Qualifier(value="publisherBatchSettings") org.springframework.beans.factory.ObjectProvider<com.google.api.gax.batching.BatchingSettings> batchingSettings, @Qualifier(value="publisherRetrySettings") org.springframework.beans.factory.ObjectProvider<com.google.api.gax.retrying.RetrySettings> retrySettings, @Qualifier(value="publisherTransportChannelProvider") com.google.api.gax.rpc.TransportChannelProvider publisherTransportChannelProvider)
@Bean @ConditionalOnMissingBean public PubSubAdmin pubSubAdmin(TopicAdminClient topicAdminClient, SubscriptionAdminClient subscriptionAdminClient)
@Bean @ConditionalOnMissingBean public TopicAdminClient topicAdminClient(TopicAdminSettings topicAdminSettings)
@Bean @ConditionalOnMissingBean public TopicAdminSettings topicAdminSettings(@Qualifier(value="publisherTransportChannelProvider") com.google.api.gax.rpc.TransportChannelProvider publisherTransportChannelProvider)
@Bean @ConditionalOnMissingBean public SubscriptionAdminClient subscriptionAdminClient(@Qualifier(value="subscriberTransportChannelProvider") com.google.api.gax.rpc.TransportChannelProvider subscriberTransportChannelProvider)
@Bean @ConditionalOnMissingBean(name="subscriberTransportChannelProvider") public com.google.api.gax.rpc.TransportChannelProvider subscriberTransportChannelProvider()
@Bean @ConditionalOnMissingBean(name="publisherTransportChannelProvider") public com.google.api.gax.rpc.TransportChannelProvider publisherTransportChannelProvider()
@PostConstruct public void registerSubscriberSettings()
Copyright © 2021. All rights reserved.