-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #853 from Microsoft/feature/priority-database
Add priority to database persistence
- Loading branch information
Showing
12 changed files
with
248 additions
and
73 deletions.
There are no files selected for viewing
187 changes: 150 additions & 37 deletions
187
.../androidTest/java/com/microsoft/appcenter/persistence/DatabasePersistenceAndroidTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
sdk/appcenter/src/main/java/com/microsoft/appcenter/Flags.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.microsoft.appcenter; | ||
|
||
/** | ||
* Persistence and latency flags for telemetry. | ||
*/ | ||
public final class Flags { | ||
|
||
/** | ||
* Mask for persistence within flags. | ||
*/ | ||
public static final int PERSISTENCE_MASK = 0xFF; | ||
|
||
/** | ||
* An event can be lost due to low bandwidth or disk space constraints. | ||
*/ | ||
public static final int PERSISTENCE_NORMAL = 0x01; | ||
|
||
/** | ||
* Used for events that should be prioritized over non-critical events. | ||
*/ | ||
public static final int PERSISTENCE_CRITICAL = 0x02; | ||
|
||
/** | ||
* Default combination of flags. | ||
*/ | ||
public static final int DEFAULT_FLAGS = PERSISTENCE_NORMAL; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.