public class NatsChannelBinder extends org.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<NatsConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<NatsProducerProperties>,NatsChannelProvisioner> implements org.springframework.cloud.stream.binder.ExtendedPropertiesBinder<org.springframework.messaging.MessageChannel,NatsConsumerProperties,NatsProducerProperties>
| Constructor and Description |
|---|
NatsChannelBinder(NatsExtendedBindingProperties bindingProperties,
NatsBinderConfigurationProperties properties,
NatsProperties natsProperties,
NatsChannelProvisioner provisioningProvider,
io.nats.client.ConnectionListener connectionListener,
io.nats.client.ErrorListener errorListener)
Create a binder with the specified properties.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.integration.core.MessageProducer |
createConsumerEndpoint(org.springframework.cloud.stream.provisioning.ConsumerDestination destination,
String group,
org.springframework.cloud.stream.binder.ExtendedConsumerProperties<NatsConsumerProperties> 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<NatsConsumerProperties> consumerProperties) |
protected org.springframework.messaging.MessageHandler |
createProducerMessageHandler(org.springframework.cloud.stream.provisioning.ProducerDestination destination,
org.springframework.cloud.stream.binder.ExtendedProducerProperties<NatsProducerProperties> producerProperties,
org.springframework.messaging.MessageChannel errorChannel) |
io.nats.client.Connection |
getConnection() |
String |
getDefaultsPrefix() |
NatsConsumerProperties |
getExtendedConsumerProperties(String channelName) |
NatsProducerProperties |
getExtendedProducerProperties(String channelName) |
Class<? extends org.springframework.cloud.stream.binder.BinderSpecificPropertiesProvider> |
getExtendedPropertiesEntryClass() |
afterUnbindConsumer, afterUnbindProducer, bindPollableConsumer, createProducerMessageHandler, doBindConsumer, doBindProducer, errorsBaseName, errorsBaseName, getApplicationEventPublisher, getContainerCustomizer, getDefaultErrorMessageHandler, getErrorBridgeName, getErrorBridgeName, getErrorMessageHandler, getErrorMessageHandlerName, getErrorMessageStrategy, getErrorRecovererName, getMessageSourceCustomizer, getPolledConsumerErrorMessageHandler, getPolledConsumerRecoveryCallback, onInit, postProcessOutputChannel, postProcessPollableSource, registerErrorInfrastructure, registerErrorInfrastructure, setApplicationEventPublisher, setConsumerEndpointCustomizer, setProducerMessageHandlerCustomizer, useNativeEncodingafterPropertiesSet, applyPrefix, bindConsumer, bindProducer, buildRetryTemplate, constructDLQName, getApplicationContext, getBeanFactory, getEvaluationContext, groupedName, setApplicationContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic NatsChannelBinder(NatsExtendedBindingProperties bindingProperties, NatsBinderConfigurationProperties properties, NatsProperties natsProperties, NatsChannelProvisioner provisioningProvider, io.nats.client.ConnectionListener connectionListener, io.nats.client.ErrorListener errorListener)
bindingProperties - extended properties for future useproperties - primary propertiesnatsProperties - backup global propertiesprovisioningProvider - provisioner for destination namesconnectionListener - custom connection listenererrorListener - custom error listenerpublic io.nats.client.Connection getConnection()
protected org.springframework.messaging.MessageHandler createProducerMessageHandler(org.springframework.cloud.stream.provisioning.ProducerDestination destination,
org.springframework.cloud.stream.binder.ExtendedProducerProperties<NatsProducerProperties> producerProperties,
org.springframework.messaging.MessageChannel errorChannel)
createProducerMessageHandler in class org.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<NatsConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<NatsProducerProperties>,NatsChannelProvisioner>protected org.springframework.integration.core.MessageProducer createConsumerEndpoint(org.springframework.cloud.stream.provisioning.ConsumerDestination destination,
String group,
org.springframework.cloud.stream.binder.ExtendedConsumerProperties<NatsConsumerProperties> properties)
createConsumerEndpoint in class org.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<NatsConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<NatsProducerProperties>,NatsChannelProvisioner>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<NatsConsumerProperties> consumerProperties)
createPolledConsumerResources in class org.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<NatsConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<NatsProducerProperties>,NatsChannelProvisioner>public NatsConsumerProperties getExtendedConsumerProperties(String channelName)
getExtendedConsumerProperties in interface org.springframework.cloud.stream.binder.ExtendedBindingProperties<NatsConsumerProperties,NatsProducerProperties>public NatsProducerProperties getExtendedProducerProperties(String channelName)
getExtendedProducerProperties in interface org.springframework.cloud.stream.binder.ExtendedBindingProperties<NatsConsumerProperties,NatsProducerProperties>public String getDefaultsPrefix()
getDefaultsPrefix in interface org.springframework.cloud.stream.binder.ExtendedBindingProperties<NatsConsumerProperties,NatsProducerProperties>public Class<? extends org.springframework.cloud.stream.binder.BinderSpecificPropertiesProvider> getExtendedPropertiesEntryClass()
getExtendedPropertiesEntryClass in interface org.springframework.cloud.stream.binder.ExtendedBindingProperties<NatsConsumerProperties,NatsProducerProperties>Copyright © 2024 CNCF. All rights reserved.