From e9ee3c6610ca8e73f93f94ccdd2831aee4931d41 Mon Sep 17 00:00:00 2001 From: Rahul Raveendran Date: Wed, 7 Aug 2024 15:12:53 +0530 Subject: [PATCH] Deprecated the legacy events module classes with a note --- .../src/main/java/com/blueshift/batch/AlarmReceiver.java | 7 ++++++- .../src/main/java/com/blueshift/batch/BulkEvent.java | 6 ++++++ .../java/com/blueshift/batch/BulkEventJobService.java | 7 +++++++ .../main/java/com/blueshift/batch/BulkEventManager.java | 6 ++++++ android-sdk/src/main/java/com/blueshift/batch/Event.java | 6 ++++++ .../src/main/java/com/blueshift/batch/EventsTable.java | 6 ++++++ .../main/java/com/blueshift/batch/FailedEventsTable.java | 6 ++++++ .../src/main/java/com/blueshift/httpmanager/Method.java | 7 +++++++ .../src/main/java/com/blueshift/httpmanager/Request.java | 6 ++++++ .../src/main/java/com/blueshift/httpmanager/Response.java | 6 ++++++ .../httpmanager/request_queue/RequestQueueJobService.java | 8 ++++++-- .../com/blueshift/receiver/NetworkChangeListener.java | 7 ++++++- .../com/blueshift/request_queue/RequestDispatcher.java | 7 +++++++ .../java/com/blueshift/request_queue/RequestQueue.java | 6 ++++++ .../com/blueshift/request_queue/RequestQueueTable.java | 5 +++++ 15 files changed, 92 insertions(+), 4 deletions(-) diff --git a/android-sdk/src/main/java/com/blueshift/batch/AlarmReceiver.java b/android-sdk/src/main/java/com/blueshift/batch/AlarmReceiver.java index 91cf56e3..ffe34444 100644 --- a/android-sdk/src/main/java/com/blueshift/batch/AlarmReceiver.java +++ b/android-sdk/src/main/java/com/blueshift/batch/AlarmReceiver.java @@ -18,8 +18,13 @@ * @author Rahul Raveendran V P * Created on 25/8/16 @ 1:01 PM * https://github.com/rahulrvp + * + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. */ - +@Deprecated public class AlarmReceiver extends BroadcastReceiver { private static final String LOG_TAG = "BatchAlarmReceiver"; diff --git a/android-sdk/src/main/java/com/blueshift/batch/BulkEvent.java b/android-sdk/src/main/java/com/blueshift/batch/BulkEvent.java index 7f1ae3a5..1099b440 100644 --- a/android-sdk/src/main/java/com/blueshift/batch/BulkEvent.java +++ b/android-sdk/src/main/java/com/blueshift/batch/BulkEvent.java @@ -7,7 +7,13 @@ * @author Rahul Raveendran V P * Created on 26/8/16 @ 3:04 PM * https://github.com/rahulrvp + * + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. */ +@Deprecated public class BulkEvent { ArrayList> events; diff --git a/android-sdk/src/main/java/com/blueshift/batch/BulkEventJobService.java b/android-sdk/src/main/java/com/blueshift/batch/BulkEventJobService.java index b56f6bcf..f2c61978 100644 --- a/android-sdk/src/main/java/com/blueshift/batch/BulkEventJobService.java +++ b/android-sdk/src/main/java/com/blueshift/batch/BulkEventJobService.java @@ -9,6 +9,13 @@ import com.blueshift.BlueshiftExecutor; import com.blueshift.BlueshiftLogger; +/** + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. + */ +@Deprecated @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) public class BulkEventJobService extends JobService { private static final String TAG = "BulkEventJobService"; diff --git a/android-sdk/src/main/java/com/blueshift/batch/BulkEventManager.java b/android-sdk/src/main/java/com/blueshift/batch/BulkEventManager.java index 3503263b..63b15aea 100644 --- a/android-sdk/src/main/java/com/blueshift/batch/BulkEventManager.java +++ b/android-sdk/src/main/java/com/blueshift/batch/BulkEventManager.java @@ -31,7 +31,13 @@ * @author Rahul Raveendran V P * Created on 25/8/16 @ 3:05 PM * https://github.com/rahulrvp + * + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. */ +@Deprecated public class BulkEventManager { private static final String LOG_TAG = BulkEventManager.class.getSimpleName(); diff --git a/android-sdk/src/main/java/com/blueshift/batch/Event.java b/android-sdk/src/main/java/com/blueshift/batch/Event.java index 493efb36..6e648c52 100644 --- a/android-sdk/src/main/java/com/blueshift/batch/Event.java +++ b/android-sdk/src/main/java/com/blueshift/batch/Event.java @@ -8,7 +8,13 @@ * @author Rahul Raveendran V P * Created on 24/8/16 @ 3:04 PM * https://github.com/rahulrvp + * + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. */ +@Deprecated public class Event { private long mId; private HashMap mEventParams; diff --git a/android-sdk/src/main/java/com/blueshift/batch/EventsTable.java b/android-sdk/src/main/java/com/blueshift/batch/EventsTable.java index 91bbae2e..23d6dc49 100644 --- a/android-sdk/src/main/java/com/blueshift/batch/EventsTable.java +++ b/android-sdk/src/main/java/com/blueshift/batch/EventsTable.java @@ -19,7 +19,13 @@ * @author Rahul Raveendran V P * Created on 24/8/16 @ 3:07 PM * https://github.com/rahulrvp + * + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. */ +@Deprecated public class EventsTable extends BaseSqliteTable { public static final String TABLE_NAME = "events"; diff --git a/android-sdk/src/main/java/com/blueshift/batch/FailedEventsTable.java b/android-sdk/src/main/java/com/blueshift/batch/FailedEventsTable.java index 5cf71e8f..053aa9bd 100644 --- a/android-sdk/src/main/java/com/blueshift/batch/FailedEventsTable.java +++ b/android-sdk/src/main/java/com/blueshift/batch/FailedEventsTable.java @@ -22,7 +22,13 @@ * These events will be taken to build the batch first. * The values from {@link EventsTable} will only be taken if this table has no entries, * or if this table contains less number of events than a max batch size. + * + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. */ +@Deprecated public class FailedEventsTable extends BaseSqliteTable { public static final String TABLE_NAME = "failed_events"; diff --git a/android-sdk/src/main/java/com/blueshift/httpmanager/Method.java b/android-sdk/src/main/java/com/blueshift/httpmanager/Method.java index e329e568..1ba663a6 100644 --- a/android-sdk/src/main/java/com/blueshift/httpmanager/Method.java +++ b/android-sdk/src/main/java/com/blueshift/httpmanager/Method.java @@ -1,5 +1,12 @@ package com.blueshift.httpmanager; +/** + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. + */ +@Deprecated public enum Method { GET, POST, diff --git a/android-sdk/src/main/java/com/blueshift/httpmanager/Request.java b/android-sdk/src/main/java/com/blueshift/httpmanager/Request.java index 9545d45f..24bb80e2 100644 --- a/android-sdk/src/main/java/com/blueshift/httpmanager/Request.java +++ b/android-sdk/src/main/java/com/blueshift/httpmanager/Request.java @@ -10,7 +10,13 @@ * @author Rahul Raveendran V P * Created on 25/2/15 @ 3:04 PM * https://github.com/rahulrvp + * + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. */ +@Deprecated public class Request implements Serializable { private long id; private String url; diff --git a/android-sdk/src/main/java/com/blueshift/httpmanager/Response.java b/android-sdk/src/main/java/com/blueshift/httpmanager/Response.java index 8f4bb522..31b86273 100644 --- a/android-sdk/src/main/java/com/blueshift/httpmanager/Response.java +++ b/android-sdk/src/main/java/com/blueshift/httpmanager/Response.java @@ -7,7 +7,13 @@ * @author Rahul Raveendran V P * Created on 05/12/13 @ 3:04 PM * https://github.com/rahulrvp + * + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. */ +@Deprecated public class Response { private int statusCode; // HTTP Status Code private String responseBody; diff --git a/android-sdk/src/main/java/com/blueshift/httpmanager/request_queue/RequestQueueJobService.java b/android-sdk/src/main/java/com/blueshift/httpmanager/request_queue/RequestQueueJobService.java index 8e5d1e3c..a3b0cb92 100644 --- a/android-sdk/src/main/java/com/blueshift/httpmanager/request_queue/RequestQueueJobService.java +++ b/android-sdk/src/main/java/com/blueshift/httpmanager/request_queue/RequestQueueJobService.java @@ -15,9 +15,13 @@ * @author Rahul Raveendran V P * Created on 13/03/18 @ 11:09 AM * https://github.com/rahulrvp + * + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. */ - - +@Deprecated @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) public class RequestQueueJobService extends JobService { private static final String TAG = "RequestQueueJobService"; diff --git a/android-sdk/src/main/java/com/blueshift/receiver/NetworkChangeListener.java b/android-sdk/src/main/java/com/blueshift/receiver/NetworkChangeListener.java index 8e9e3e1e..ad1b6ecd 100644 --- a/android-sdk/src/main/java/com/blueshift/receiver/NetworkChangeListener.java +++ b/android-sdk/src/main/java/com/blueshift/receiver/NetworkChangeListener.java @@ -11,8 +11,13 @@ * @author Rahul Raveendran V P * Created on 09/03/18 @ 3:16 PM * https://github.com/rahulrvp + * + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. */ - +@Deprecated public class NetworkChangeListener extends BroadcastReceiver { /* diff --git a/android-sdk/src/main/java/com/blueshift/request_queue/RequestDispatcher.java b/android-sdk/src/main/java/com/blueshift/request_queue/RequestDispatcher.java index c8527f8a..ecd24221 100644 --- a/android-sdk/src/main/java/com/blueshift/request_queue/RequestDispatcher.java +++ b/android-sdk/src/main/java/com/blueshift/request_queue/RequestDispatcher.java @@ -36,6 +36,13 @@ import java.lang.reflect.Type; import java.util.HashMap; +/** + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. + */ +@Deprecated class RequestDispatcher { private static final String LOG_TAG = "RequestDispatcher"; private static final long RETRY_INTERVAL = 5 * 60 * 1000; diff --git a/android-sdk/src/main/java/com/blueshift/request_queue/RequestQueue.java b/android-sdk/src/main/java/com/blueshift/request_queue/RequestQueue.java index aa22cf28..64bfa4c9 100644 --- a/android-sdk/src/main/java/com/blueshift/request_queue/RequestQueue.java +++ b/android-sdk/src/main/java/com/blueshift/request_queue/RequestQueue.java @@ -20,7 +20,13 @@ * @author Rahul Raveendran V P * Created on 26/2/15 @ 3:07 PM * https://github.com/rahulrvp + * + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. */ +@Deprecated public class RequestQueue { public static final int DEFAULT_RETRY_COUNT = 3; diff --git a/android-sdk/src/main/java/com/blueshift/request_queue/RequestQueueTable.java b/android-sdk/src/main/java/com/blueshift/request_queue/RequestQueueTable.java index 77c45547..afa53a26 100644 --- a/android-sdk/src/main/java/com/blueshift/request_queue/RequestQueueTable.java +++ b/android-sdk/src/main/java/com/blueshift/request_queue/RequestQueueTable.java @@ -16,7 +16,12 @@ * @author Rahul Raveendran V P * Created on 26/5/15 @ 3:07 PM * https://github.com/rahulrvp + * @deprecated + * This class is deprecated and will be removed in a future release. The events module has been + * refactored to improve performance and reliability. This class is now used internally for legacy + * data migration and will not be supported going forward. */ +@Deprecated public class RequestQueueTable extends BaseSqliteTable { private static final String LOG_TAG = RequestQueueTable.class.getSimpleName();