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
provisioningProvider
Fields inherited from class org.springframework.cloud.stream.binder.AbstractBinder
logger
-
Constructor Summary
ConstructorDescriptionPubSubMessageChannelBinder
(String[] headersToEmbed, PubSubChannelProvisioner provisioningProvider, PubSubTemplate pubSubTemplate, PubSubExtendedBindingProperties pubSubExtendedBindingProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
afterUnbindConsumer
(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> consumerProperties) protected org.springframework.integration.core.MessageProducer
createConsumerEndpoint
(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> properties) 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) 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) protected PubSubMessageSource
createPubSubMessageSource
(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties> consumerProperties) protected String
errorsBaseName
(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>
void
setHealthTrackerRegistry
(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, useNativeEncoding
Methods inherited from class org.springframework.cloud.stream.binder.AbstractBinder
afterPropertiesSet, applyPrefix, bindConsumer, bindProducer, buildRetryTemplate, constructDLQName, getApplicationContext, getBeanFactory, getBindingServiceProperties, getEvaluationContext, groupedName, setApplicationContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.cloud.stream.binder.Binder
bindConsumer, bindProducer, getBinderIdentity
Methods 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:
createProducerMessageHandler
in 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:
createConsumerEndpoint
in 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:
errorsBaseName
in classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<PubSubConsumerProperties>,
org.springframework.cloud.stream.binder.ExtendedProducerProperties<PubSubProducerProperties>, PubSubChannelProvisioner>
-
getExtendedConsumerProperties
- Specified by:
getExtendedConsumerProperties
in interfaceorg.springframework.cloud.stream.binder.ExtendedBindingProperties<PubSubConsumerProperties,
PubSubProducerProperties>
-
getExtendedProducerProperties
- Specified by:
getExtendedProducerProperties
in interfaceorg.springframework.cloud.stream.binder.ExtendedBindingProperties<PubSubConsumerProperties,
PubSubProducerProperties>
-
getDefaultsPrefix
- Specified by:
getDefaultsPrefix
in interfaceorg.springframework.cloud.stream.binder.ExtendedBindingProperties<PubSubConsumerProperties,
PubSubProducerProperties>
-
getExtendedPropertiesEntryClass
public Class<? extends org.springframework.cloud.stream.binder.BinderSpecificPropertiesProvider> getExtendedPropertiesEntryClass()- Specified by:
getExtendedPropertiesEntryClass
in 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:
afterUnbindConsumer
in 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:
createPolledConsumerResources
in 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)
-