@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) |
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(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,
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) |
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler |
pubsubSubscriberThreadPool() |
PubSubTemplate |
pubSubTemplate(PubSubPublisherTemplate pubSubPublisherTemplate,
PubSubSubscriberTemplate pubSubSubscriberTemplate) |
com.google.api.gax.core.ExecutorProvider |
subscriberExecutorProvider(org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler) |
com.google.api.gax.batching.FlowControlSettings |
subscriberFlowControlSettings() |
com.google.api.gax.retrying.RetrySettings |
subscriberRetrySettings() |
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) 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(name="pubsubSubscriberThreadPool") public org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler pubsubSubscriberThreadPool()
@Bean @ConditionalOnMissingBean(name="subscriberExecutorProvider") public com.google.api.gax.core.ExecutorProvider subscriberExecutorProvider(@Qualifier(value="pubsubSubscriberThreadPool") 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(name="subscriberRetrySettings") public com.google.api.gax.retrying.RetrySettings subscriberRetrySettings()
@Bean @ConditionalOnMissingBean(name="subscriberFlowControlSettings") public com.google.api.gax.batching.FlowControlSettings subscriberFlowControlSettings()
@Bean @ConditionalOnMissingBean public SubscriberFactory defaultSubscriberFactory(@Qualifier(value="subscriberExecutorProvider") 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="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()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.