Impl CoreSubscriber instead of Subscriber
According Reactor recommendation it would be better to `CoreSubscriber` from Reactor instead of Reactive Streams `Subscriber` for chasing some optimisation in case of Reactor flows Increase `receive()` timeout in the `AttributePollingChannelAdapterParserTests`
This commit is contained in:
@@ -34,6 +34,7 @@ import org.springframework.messaging.MessageHandler;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.ErrorHandler;
|
||||
|
||||
import reactor.core.CoreSubscriber;
|
||||
import reactor.core.Disposable;
|
||||
import reactor.core.publisher.BaseSubscriber;
|
||||
|
||||
@@ -165,7 +166,7 @@ public class ReactiveStreamsConsumer extends AbstractEndpoint implements Integra
|
||||
|
||||
|
||||
private static final class MessageHandlerSubscriber
|
||||
implements Subscriber<Message<?>>, Disposable, Lifecycle {
|
||||
implements CoreSubscriber<Message<?>>, Disposable, Lifecycle {
|
||||
|
||||
private final Consumer<Message<?>> consumer;
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package org.springframework.integration.handler;
|
||||
|
||||
import org.reactivestreams.Subscriber;
|
||||
import org.reactivestreams.Subscription;
|
||||
|
||||
import org.springframework.core.Ordered;
|
||||
@@ -37,6 +36,8 @@ import org.springframework.messaging.MessageHandlingException;
|
||||
import org.springframework.messaging.MessagingException;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import reactor.core.CoreSubscriber;
|
||||
|
||||
/**
|
||||
* Base class for MessageHandler implementations that provides basic validation
|
||||
* and error handling capabilities. Asserts that the incoming Message is not
|
||||
@@ -50,7 +51,7 @@ import org.springframework.util.Assert;
|
||||
@IntegrationManagedResource
|
||||
public abstract class AbstractMessageHandler extends IntegrationObjectSupport implements MessageHandler,
|
||||
MessageHandlerMetrics, ConfigurableMetricsAware<AbstractMessageHandlerMetrics>, TrackableComponent, Orderable,
|
||||
Subscriber<Message<?>> {
|
||||
CoreSubscriber<Message<?>> {
|
||||
|
||||
private volatile boolean shouldTrack = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user