File tree 3 files changed +30
-2
lines changed
sdk/src/main/java/com/deploygate/sdk
3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1
1
package com .deploygate .sdk ;
2
2
3
3
import com .deploygate .sdk .internal .Logger ;
4
+ import com .deploygate .sdk .internal .annotations .Experimental ;
4
5
6
+ @ Experimental
5
7
public class CustomLogConfiguration {
8
+ @ Experimental
6
9
public enum Backpressure {
7
10
/**
8
11
* SDK rejects new logs if buffer size is exceeded
@@ -43,6 +46,7 @@ private CustomLogConfiguration(
43
46
this .bufferSize = bufferSize ;
44
47
}
45
48
49
+ @ Experimental
46
50
public static class Builder {
47
51
private Backpressure backpressure = Backpressure .DROP_BUFFER_BY_OLDEST ;
48
52
private int bufferSize = DEFAULT_BUFFER_SIZE ;
Original file line number Diff line number Diff line change 4
4
import android .util .Pair ;
5
5
6
6
import com .deploygate .sdk .internal .Logger ;
7
+ import com .deploygate .sdk .internal .annotations .Experimental ;
7
8
8
9
import java .io .BufferedReader ;
9
10
import java .io .IOException ;
@@ -57,7 +58,7 @@ void emit(
57
58
* @return a pair of watcher ids (non-nulls). first is the previous watcher id, second is the new watcher id.
58
59
*/
59
60
Pair <String , String > execute (
60
- String streamSessionKey
61
+ @ Experimental String streamSessionKey
61
62
) {
62
63
Pair <String , String > ids ;
63
64
@@ -125,7 +126,7 @@ static class LogcatWatcher implements Runnable {
125
126
private final AtomicInteger state ;
126
127
127
128
LogcatWatcher (
128
- String streamSessionKey ,
129
+ @ Experimental String streamSessionKey ,
129
130
Callback callback
130
131
) {
131
132
this .processId = streamSessionKey != null ? streamSessionKey : ClientId .generate ();
Original file line number Diff line number Diff line change
1
+ package com .deploygate .sdk .internal .annotations ;
2
+
3
+ import java .lang .annotation .Documented ;
4
+ import java .lang .annotation .ElementType ;
5
+ import java .lang .annotation .Retention ;
6
+ import java .lang .annotation .RetentionPolicy ;
7
+ import java .lang .annotation .Target ;
8
+
9
+ /**
10
+ * Annotate elements that we may change the API until making it stable.
11
+ */
12
+ @ Documented
13
+ @ Target ({
14
+ ElementType .ANNOTATION_TYPE ,
15
+ ElementType .CONSTRUCTOR ,
16
+ ElementType .FIELD ,
17
+ ElementType .METHOD ,
18
+ ElementType .PARAMETER ,
19
+ ElementType .TYPE
20
+ })
21
+ @ Retention (RetentionPolicy .CLASS )
22
+ public @interface Experimental {}
23
+
You can’t perform that action at this time.
0 commit comments