From 47f835ad3bdd90bd25bbdb79d2a8fd3233d88831 Mon Sep 17 00:00:00 2001 From: Brandon Dahler Date: Tue, 22 Feb 2022 22:51:38 -0500 Subject: [PATCH] Upgrade to rxjava3 --- amazon-kinesis-client/pom.xml | 4 ++-- .../software/amazon/kinesis/coordinator/Scheduler.java | 2 +- .../kinesis/lifecycle/ShardConsumerSubscriber.java | 6 +++--- .../amazon/kinesis/coordinator/SchedulerTest.java | 2 +- .../retrieval/fanout/FanOutRecordsPublisherTest.java | 10 +++++----- .../polling/PrefetchRecordsPublisherTest.java | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/amazon-kinesis-client/pom.xml b/amazon-kinesis-client/pom.xml index ccae5e29f..1453bbd7e 100644 --- a/amazon-kinesis-client/pom.xml +++ b/amazon-kinesis-client/pom.xml @@ -107,9 +107,9 @@ - io.reactivex.rxjava2 + io.reactivex.rxjava3 rxjava - 2.2.21 + 3.1.3 diff --git a/amazon-kinesis-client/src/main/java/software/amazon/kinesis/coordinator/Scheduler.java b/amazon-kinesis-client/src/main/java/software/amazon/kinesis/coordinator/Scheduler.java index e621376cb..5d9f73e9d 100644 --- a/amazon-kinesis-client/src/main/java/software/amazon/kinesis/coordinator/Scheduler.java +++ b/amazon-kinesis-client/src/main/java/software/amazon/kinesis/coordinator/Scheduler.java @@ -18,7 +18,7 @@ import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Stopwatch; -import io.reactivex.plugins.RxJavaPlugins; +import io.reactivex.rxjava3.plugins.RxJavaPlugins; import java.time.Duration; import java.time.Instant; import java.util.ArrayList; diff --git a/amazon-kinesis-client/src/main/java/software/amazon/kinesis/lifecycle/ShardConsumerSubscriber.java b/amazon-kinesis-client/src/main/java/software/amazon/kinesis/lifecycle/ShardConsumerSubscriber.java index 685a76d2f..52ec14682 100644 --- a/amazon-kinesis-client/src/main/java/software/amazon/kinesis/lifecycle/ShardConsumerSubscriber.java +++ b/amazon-kinesis-client/src/main/java/software/amazon/kinesis/lifecycle/ShardConsumerSubscriber.java @@ -15,9 +15,9 @@ package software.amazon.kinesis.lifecycle; import com.google.common.annotations.VisibleForTesting; -import io.reactivex.Flowable; -import io.reactivex.Scheduler; -import io.reactivex.schedulers.Schedulers; +import io.reactivex.rxjava3.core.Flowable; +import io.reactivex.rxjava3.core.Scheduler; +import io.reactivex.rxjava3.schedulers.Schedulers; import lombok.AccessLevel; import lombok.Getter; import lombok.experimental.Accessors; diff --git a/amazon-kinesis-client/src/test/java/software/amazon/kinesis/coordinator/SchedulerTest.java b/amazon-kinesis-client/src/test/java/software/amazon/kinesis/coordinator/SchedulerTest.java index 5ff7596c2..aa9f8412b 100644 --- a/amazon-kinesis-client/src/test/java/software/amazon/kinesis/coordinator/SchedulerTest.java +++ b/amazon-kinesis-client/src/test/java/software/amazon/kinesis/coordinator/SchedulerTest.java @@ -53,7 +53,7 @@ import com.google.common.base.Joiner; import com.google.common.collect.Sets; -import io.reactivex.plugins.RxJavaPlugins; +import io.reactivex.rxjava3.plugins.RxJavaPlugins; import lombok.NoArgsConstructor; import lombok.RequiredArgsConstructor; import org.junit.Assert; diff --git a/amazon-kinesis-client/src/test/java/software/amazon/kinesis/retrieval/fanout/FanOutRecordsPublisherTest.java b/amazon-kinesis-client/src/test/java/software/amazon/kinesis/retrieval/fanout/FanOutRecordsPublisherTest.java index 438811229..40d86c499 100644 --- a/amazon-kinesis-client/src/test/java/software/amazon/kinesis/retrieval/fanout/FanOutRecordsPublisherTest.java +++ b/amazon-kinesis-client/src/test/java/software/amazon/kinesis/retrieval/fanout/FanOutRecordsPublisherTest.java @@ -2,10 +2,10 @@ import com.google.common.util.concurrent.ThreadFactoryBuilder; import io.netty.handler.timeout.ReadTimeoutException; -import io.reactivex.Flowable; -import io.reactivex.Scheduler; -import io.reactivex.schedulers.Schedulers; -import io.reactivex.subscribers.SafeSubscriber; +import io.reactivex.rxjava3.core.Flowable; +import io.reactivex.rxjava3.core.Scheduler; +import io.reactivex.rxjava3.schedulers.Schedulers; +import io.reactivex.rxjava3.subscribers.SafeSubscriber; import lombok.Data; import lombok.RequiredArgsConstructor; import lombok.Setter; @@ -1682,4 +1682,4 @@ public void describeTo(Description description) { } -} \ No newline at end of file +} diff --git a/amazon-kinesis-client/src/test/java/software/amazon/kinesis/retrieval/polling/PrefetchRecordsPublisherTest.java b/amazon-kinesis-client/src/test/java/software/amazon/kinesis/retrieval/polling/PrefetchRecordsPublisherTest.java index 8264f89d2..55d764328 100644 --- a/amazon-kinesis-client/src/test/java/software/amazon/kinesis/retrieval/polling/PrefetchRecordsPublisherTest.java +++ b/amazon-kinesis-client/src/test/java/software/amazon/kinesis/retrieval/polling/PrefetchRecordsPublisherTest.java @@ -73,8 +73,8 @@ import org.reactivestreams.Subscriber; import org.reactivestreams.Subscription; -import io.reactivex.Flowable; -import io.reactivex.schedulers.Schedulers; +import io.reactivex.rxjava3.core.Flowable; +import io.reactivex.rxjava3.schedulers.Schedulers; import lombok.extern.slf4j.Slf4j; import software.amazon.awssdk.core.SdkBytes; import software.amazon.awssdk.core.exception.SdkException;