Class ReactiveStreamsConsumer

java.lang.Object
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, ExpressionCapable, IntegrationConsumer, NamedComponent, ManageableLifecycle, ManageableSmartLifecycle

public class ReactiveStreamsConsumer
extends AbstractEndpoint
implements IntegrationConsumer
An AbstractEndpoint implementation for Reactive Streams subscription into an input channel and reactive consumption of messages from that channel.
Since:
5.0
  • Constructor Details

    • ReactiveStreamsConsumer

      public ReactiveStreamsConsumer​(org.springframework.messaging.MessageChannel inputChannel, org.springframework.messaging.MessageHandler messageHandler)
    • ReactiveStreamsConsumer

      public ReactiveStreamsConsumer​(org.springframework.messaging.MessageChannel inputChannel, org.reactivestreams.Subscriber<org.springframework.messaging.Message<?>> subscriber)
    • ReactiveStreamsConsumer

      public ReactiveStreamsConsumer​(org.springframework.messaging.MessageChannel inputChannel, org.springframework.messaging.ReactiveMessageHandler reactiveMessageHandler)
      Instantiate an endpoint based on the provided MessageChannel and ReactiveMessageHandler.
      Parameters:
      inputChannel - the channel to consume in reactive manner.
      reactiveMessageHandler - the ReactiveMessageHandler to process messages.
      Since:
      5.3
  • Method Details