public final class StreamUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
configureAdapter(org.springframework.integration.amqp.inbound.AmqpInboundChannelAdapter adapter)
Configure the channel adapter for streams support.
|
static org.springframework.amqp.rabbit.listener.MessageListenerContainer |
createContainer(org.springframework.cloud.stream.provisioning.ConsumerDestination consumerDestination,
String group,
org.springframework.cloud.stream.binder.ExtendedConsumerProperties<RabbitConsumerProperties> properties,
String destination,
RabbitConsumerProperties extension,
org.springframework.context.support.AbstractApplicationContext applicationContext)
Create a
StreamListenerContainer. |
static org.springframework.messaging.MessageHandler |
createStreamMessageHandler(org.springframework.cloud.stream.provisioning.ProducerDestination producerDestination,
org.springframework.cloud.stream.binder.ExtendedProducerProperties<RabbitProducerProperties> producerProperties,
org.springframework.messaging.MessageChannel errorChannel,
String destination,
RabbitProducerProperties extendedProperties,
org.springframework.context.support.AbstractApplicationContext applicationContext,
Function<RabbitProducerProperties,org.springframework.integration.amqp.support.AmqpHeaderMapper> headerMapperFunction)
Create a
RabbitStreamMessageHandler. |
public static org.springframework.amqp.rabbit.listener.MessageListenerContainer createContainer(org.springframework.cloud.stream.provisioning.ConsumerDestination consumerDestination,
String group,
org.springframework.cloud.stream.binder.ExtendedConsumerProperties<RabbitConsumerProperties> properties,
String destination,
RabbitConsumerProperties extension,
org.springframework.context.support.AbstractApplicationContext applicationContext)
StreamListenerContainer.consumerDestination - the destination.group - the group.properties - the properties.destination - the destination.extension - the properties extension.applicationContext - the application context.public static void configureAdapter(org.springframework.integration.amqp.inbound.AmqpInboundChannelAdapter adapter)
adapter - the adapter.public static org.springframework.messaging.MessageHandler createStreamMessageHandler(org.springframework.cloud.stream.provisioning.ProducerDestination producerDestination,
org.springframework.cloud.stream.binder.ExtendedProducerProperties<RabbitProducerProperties> producerProperties,
org.springframework.messaging.MessageChannel errorChannel,
String destination,
RabbitProducerProperties extendedProperties,
org.springframework.context.support.AbstractApplicationContext applicationContext,
Function<RabbitProducerProperties,org.springframework.integration.amqp.support.AmqpHeaderMapper> headerMapperFunction)
RabbitStreamMessageHandler.producerDestination - the destination.producerProperties - the properties.errorChannel - the error channeldestination - the destination.extendedProperties - the extended properties.abstractApplicationContext - the application context.headerMapperFunction - the header mapper function.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.