public S minSubscribers(int minSubscribers) { this.channel.setMinSubscribers(minSubscribers); return _this(); }
public S minSubscribers(int minSubscribers) { this.channel.setMinSubscribers(minSubscribers); return _this(); }
public S minSubscribers(int minSubscribers) { this.channel.setMinSubscribers(minSubscribers); return _this(); }
public S minSubscribers(int minSubscribers) { this.channel.setMinSubscribers(minSubscribers); return _this(); }
/** * Represent an Integration Flow as a Reactive Streams {@link Publisher} bean. * @param executor the managed {@link Executor} to be used for the background task to * poll messages from the {@link PollableChannel}. * Defaults to {@link Executors#newSingleThreadExecutor()}. * @param <T> the {@code payload} type * @return the Reactive Streams {@link Publisher} */ public <T> Publisher<Message<T>> toReactivePublisher(Executor executor) { Assert.notNull(executor, "'executor' must not be null"); MessageChannel channelForPublisher = this.currentMessageChannel; if (channelForPublisher == null) { PublishSubscribeChannel publishSubscribeChannel = new PublishSubscribeChannel(); publishSubscribeChannel.setMinSubscribers(1); channelForPublisher = publishSubscribeChannel; channel(channelForPublisher); } get(); return new PublisherIntegrationFlow<T>(this.integrationComponents, channelForPublisher, executor); }
/** * Represent an Integration Flow as a Reactive Streams {@link Publisher} bean. * @param executor the managed {@link Executor} to be used for the background task to * poll messages from the {@link PollableChannel}. * Defaults to {@link Executors#newSingleThreadExecutor()}. * @param <T> the {@code payload} type * @return the Reactive Streams {@link Publisher} */ public <T> Publisher<Message<T>> toReactivePublisher(Executor executor) { Assert.notNull(executor, "'executor' must not be null"); MessageChannel channelForPublisher = this.currentMessageChannel; if (channelForPublisher == null) { PublishSubscribeChannel publishSubscribeChannel = new PublishSubscribeChannel(); publishSubscribeChannel.setMinSubscribers(1); channelForPublisher = publishSubscribeChannel; channel(channelForPublisher); } get(); return new PublisherIntegrationFlow<T>(this.integrationComponents, channelForPublisher, executor); }