Class GooglePubSubConfiguration
java.lang.Object
pl.allegro.tech.hermes.consumers.config.GooglePubSubConfiguration
@Configuration
@EnableConfigurationProperties({GooglePubSubSenderProperties.class,GooglePubSubCompressorProperties.class})
public class GooglePubSubConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.batching.BatchingSettingsbatchingSettings(GooglePubSubSenderProperties googlePubSubSenderProperties) googlePubSubPublishingExecutor(GooglePubSubSenderProperties googlePubSubSenderProperties) com.google.api.gax.core.ExecutorProvidergooglePubSubPublishingExecutorProvider(ScheduledExecutorService googlePubSubPublishingExecutor) messageTransformerCreator(GooglePubSubCompressorProperties compressorProperties) com.google.api.gax.retrying.RetrySettingsretrySettings(GooglePubSubSenderProperties googlePubSubSenderProperties) com.google.api.gax.rpc.TransportChannelProvider
-
Constructor Details
-
GooglePubSubConfiguration
public GooglePubSubConfiguration()
-
-
Method Details
-
transportChannelProvider
@Bean public com.google.api.gax.rpc.TransportChannelProvider transportChannelProvider() -
messageTransformerCreator
@Bean public GooglePubSubMessageTransformerCreator messageTransformerCreator(GooglePubSubCompressorProperties compressorProperties) -
pubSubSenderTargetResolver
-
googlePubSubPublishingExecutor
@Bean(name="googlePubSubPublishingExecutor", destroyMethod="shutdown") public ScheduledExecutorService googlePubSubPublishingExecutor(GooglePubSubSenderProperties googlePubSubSenderProperties) -
googlePubSubPublishingExecutorProvider
@Bean public com.google.api.gax.core.ExecutorProvider googlePubSubPublishingExecutorProvider(@Named("googlePubSubPublishingExecutor") ScheduledExecutorService googlePubSubPublishingExecutor) -
batchingSettings
@Bean public com.google.api.gax.batching.BatchingSettings batchingSettings(GooglePubSubSenderProperties googlePubSubSenderProperties) -
retrySettings
@Bean public com.google.api.gax.retrying.RetrySettings retrySettings(GooglePubSubSenderProperties googlePubSubSenderProperties)
-