Class FluxMessageChannel

All Implemented Interfaces:
org.reactivestreams.Publisher<org.springframework.messaging.Message<?>>, 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, ReactiveStreamsSubscribableChannel, ExpressionCapable, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, org.springframework.messaging.MessageChannel, org.springframework.messaging.support.InterceptableChannel

public class FluxMessageChannel
extends AbstractMessageChannel
implements org.reactivestreams.Publisher<org.springframework.messaging.Message<?>>, ReactiveStreamsSubscribableChannel
The AbstractMessageChannel implementation for the Reactive Streams Publisher based on the Project Reactor Flux.
Since:
5.0
  • Constructor Details

  • Method Details

    • doSend

      protected boolean doSend​(org.springframework.messaging.Message<?> message, long timeout)
      Description copied from class: AbstractMessageChannel
      Subclasses must implement this method. A non-negative timeout indicates how long to wait if the channel is at capacity (if the value is 0, it must return immediately with or without success). A negative timeout value indicates that the method should block until either the message is accepted or the blocking thread is interrupted.
      Specified by:
      doSend in class AbstractMessageChannel
      Parameters:
      message - The message.
      timeout - The timeout.
      Returns:
      true if the send was successful.
    • subscribe

      public void subscribe​(org.reactivestreams.Subscriber<? super org.springframework.messaging.Message<?>> subscriber)
      Specified by:
      subscribe in interface org.reactivestreams.Publisher<org.springframework.messaging.Message<?>>
    • subscribeTo

      public void subscribeTo​(org.reactivestreams.Publisher<? extends org.springframework.messaging.Message<?>> publisher)
      Specified by:
      subscribeTo in interface ReactiveStreamsSubscribableChannel
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Specified by:
      destroy in interface IntegrationManagement
      Overrides:
      destroy in class AbstractMessageChannel