Skip to content

Commit

Permalink
Deprecated the legacy events module classes with a note
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulrvp committed Aug 7, 2024
1 parent cc6dd5c commit e9ee3c6
Show file tree
Hide file tree
Showing 15 changed files with 92 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
6 changes: 6 additions & 0 deletions android-sdk/src/main/java/com/blueshift/batch/BulkEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<HashMap<String,Object>> events;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 6 additions & 0 deletions android-sdk/src/main/java/com/blueshift/batch/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Object> mEventParams;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Event> {

public static final String TABLE_NAME = "events";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Event> {

public static final String TABLE_NAME = "failed_events";
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Request> {
private static final String LOG_TAG = RequestQueueTable.class.getSimpleName();

Expand Down

0 comments on commit e9ee3c6

Please sign in to comment.