Class PubSubMessageChannelBinder
java.lang.Object
org.springframework.cloud.stream.binder.AbstractBinder<org.springframework.messaging.MessageChannel,C,P>
org.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<PubSubProducerProperties>,PubSubChannelProvisioner>
com.google.cloud.spring.stream.binder.pubsub.PubSubMessageChannelBinder
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.cloud.stream.binder.Binder<org.springframework.messaging.MessageChannel,,org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties>, org.springframework.cloud.stream.binder.ExtendedProducerProperties<PubSubProducerProperties>> org.springframework.cloud.stream.binder.ExtendedBindingProperties<PubSubConsumerProperties,,PubSubProducerProperties> org.springframework.cloud.stream.binder.ExtendedPropertiesBinder<org.springframework.messaging.MessageChannel,,PubSubConsumerProperties, PubSubProducerProperties> org.springframework.cloud.stream.binder.PollableConsumerBinder<org.springframework.messaging.MessageHandler,,org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties>> org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationEventPublisherAware
public class PubSubMessageChannelBinder
extends org.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<PubSubProducerProperties>,PubSubChannelProvisioner>
implements org.springframework.cloud.stream.binder.ExtendedPropertiesBinder<org.springframework.messaging.MessageChannel,PubSubConsumerProperties,PubSubProducerProperties>
Message channel binder for Pub/Sub.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.cloud.stream.binder.AbstractMessageChannelBinder
org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.ErrorInfrastructure, org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.PolledConsumerResources -
Field Summary
Fields inherited from class org.springframework.cloud.stream.binder.AbstractMessageChannelBinder
provisioningProviderFields inherited from class org.springframework.cloud.stream.binder.AbstractBinder
logger -
Constructor Summary
ConstructorsConstructorDescriptionPubSubMessageChannelBinder(String[] headersToEmbed, PubSubChannelProvisioner provisioningProvider, PubSubTemplate pubSubTemplate, PubSubExtendedBindingProperties pubSubExtendedBindingProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterUnbindConsumer(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> consumerProperties) protected org.springframework.integration.core.MessageProducercreateConsumerEndpoint(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> properties) protected org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.PolledConsumerResourcescreatePolledConsumerResources(String name, String group, org.springframework.cloud.stream.provisioning.ConsumerDestination destination, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> consumerProperties) protected org.springframework.messaging.MessageHandlercreateProducerMessageHandler(org.springframework.cloud.stream.provisioning.ProducerDestination destination, org.springframework.cloud.stream.binder.ExtendedProducerProperties<PubSubProducerProperties> producerProperties, org.springframework.messaging.MessageChannel errorChannel) protected PubSubMessageSourcecreatePubSubMessageSource(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> consumerProperties) protected StringerrorsBaseName(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> properties) getExtendedConsumerProperties(String channelName) getExtendedProducerProperties(String channelName) Class<? extends org.springframework.cloud.stream.binder.BinderSpecificPropertiesProvider>voidsetHealthTrackerRegistry(HealthTrackerRegistry healthTrackerRegistry) Methods inherited from class org.springframework.cloud.stream.binder.AbstractMessageChannelBinder
afterUnbindProducer, bindPollableConsumer, createProducerMessageHandler, customizeProducerMessageHandler, doBindConsumer, doBindProducer, errorsBaseName, getApplicationEventPublisher, getContainerCustomizer, getDefaultErrorMessageHandler, getErrorBridgeName, getErrorBridgeName, getErrorMessageHandler, getErrorMessageHandlerName, getErrorMessageStrategy, getErrorRecovererName, getMessageSourceCustomizer, getPolledConsumerErrorMessageHandler, getPolledConsumerRecoveryCallback, onInit, postProcessOutputChannel, postProcessPollableSource, registerErrorInfrastructure, registerErrorInfrastructure, setApplicationEventPublisher, setConsumerEndpointCustomizer, setContainerCustomizer, setProducerMessageHandlerCustomizer, useNativeEncodingMethods inherited from class org.springframework.cloud.stream.binder.AbstractBinder
afterPropertiesSet, applyPrefix, bindConsumer, bindProducer, buildRetryTemplate, constructDLQName, getApplicationContext, getBeanFactory, getBindingServiceProperties, getEvaluationContext, groupedName, setApplicationContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.stream.binder.Binder
bindConsumer, bindProducer, getBinderIdentityMethods inherited from interface org.springframework.cloud.stream.binder.ExtendedBindingProperties
getBindings
-
Constructor Details
-
PubSubMessageChannelBinder
public PubSubMessageChannelBinder(String[] headersToEmbed, PubSubChannelProvisioner provisioningProvider, PubSubTemplate pubSubTemplate, PubSubExtendedBindingProperties pubSubExtendedBindingProperties)
-
-
Method Details
-
setHealthTrackerRegistry
-
createProducerMessageHandler
protected org.springframework.messaging.MessageHandler createProducerMessageHandler(org.springframework.cloud.stream.provisioning.ProducerDestination destination, org.springframework.cloud.stream.binder.ExtendedProducerProperties<PubSubProducerProperties> producerProperties, org.springframework.messaging.MessageChannel errorChannel) - Specified by:
createProducerMessageHandlerin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<PubSubProducerProperties>, PubSubChannelProvisioner>
-
createConsumerEndpoint
protected org.springframework.integration.core.MessageProducer createConsumerEndpoint(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> properties) - Specified by:
createConsumerEndpointin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<PubSubProducerProperties>, PubSubChannelProvisioner>
-
errorsBaseName
protected String errorsBaseName(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> properties) - Overrides:
errorsBaseNamein classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<PubSubProducerProperties>, PubSubChannelProvisioner>
-
getExtendedConsumerProperties
- Specified by:
getExtendedConsumerPropertiesin interfaceorg.springframework.cloud.stream.binder.ExtendedBindingProperties<PubSubConsumerProperties,PubSubProducerProperties>
-
getExtendedProducerProperties
- Specified by:
getExtendedProducerPropertiesin interfaceorg.springframework.cloud.stream.binder.ExtendedBindingProperties<PubSubConsumerProperties,PubSubProducerProperties>
-
getDefaultsPrefix
- Specified by:
getDefaultsPrefixin interfaceorg.springframework.cloud.stream.binder.ExtendedBindingProperties<PubSubConsumerProperties,PubSubProducerProperties>
-
getExtendedPropertiesEntryClass
public Class<? extends org.springframework.cloud.stream.binder.BinderSpecificPropertiesProvider> getExtendedPropertiesEntryClass()- Specified by:
getExtendedPropertiesEntryClassin interfaceorg.springframework.cloud.stream.binder.ExtendedBindingProperties<PubSubConsumerProperties,PubSubProducerProperties>
-
afterUnbindConsumer
protected void afterUnbindConsumer(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> consumerProperties) - Overrides:
afterUnbindConsumerin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<PubSubProducerProperties>, PubSubChannelProvisioner>
-
createPolledConsumerResources
protected org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.PolledConsumerResources createPolledConsumerResources(String name, String group, org.springframework.cloud.stream.provisioning.ConsumerDestination destination, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> consumerProperties) - Overrides:
createPolledConsumerResourcesin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<PubSubProducerProperties>, PubSubChannelProvisioner>
-
createPubSubMessageSource
protected PubSubMessageSource createPubSubMessageSource(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> consumerProperties)
-