18
18
19
19
import java .util .*;
20
20
import java .util .concurrent .atomic .AtomicIntegerFieldUpdater ;
21
-
21
+
22
22
import rx .*;
23
23
import rx .Observable ;
24
24
import rx .Observable .OnSubscribe ;
25
25
import rx .Observer ;
26
- import rx .annotations .Experimental ;
27
26
import rx .functions .*;
28
27
import rx .internal .operators .*;
29
28
import rx .observers .*;
30
29
import rx .plugins .RxJavaPlugins ;
31
30
import rx .subscriptions .CompositeSubscription ;
31
+ import rx .annotations .Beta ;
32
32
33
33
/**
34
34
* A utility class to create {@code OnSubscribe<T>} functions that respond correctly to back
44
44
* @param <T>
45
45
* the type of {@code Subscribers} that will be compatible with {@code this}.
46
46
*/
47
- @ Experimental
47
+ @ Beta
48
48
public abstract class AsyncOnSubscribe <S , T > implements OnSubscribe <T > {
49
49
50
50
/**
@@ -108,7 +108,7 @@ protected void onUnsubscribe(S state) {
108
108
* {@link #next(Object, long, Observer) next(S, long, Observer)})
109
109
* @return an AsyncOnSubscribe that emits data in a protocol compatible with back-pressure.
110
110
*/
111
- @ Experimental
111
+ @ Beta
112
112
public static <S , T > AsyncOnSubscribe <S , T > createSingleState (Func0 <? extends S > generator ,
113
113
final Action3 <? super S , Long , ? super Observer <Observable <? extends T >>> next ) {
114
114
Func3 <S , Long , ? super Observer <Observable <? extends T >>, S > nextFunc =
@@ -137,7 +137,7 @@ public S call(S state, Long requested, Observer<Observable<? extends T>> subscri
137
137
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
138
138
* back-pressure.
139
139
*/
140
- @ Experimental
140
+ @ Beta
141
141
public static <S , T > AsyncOnSubscribe <S , T > createSingleState (Func0 <? extends S > generator ,
142
142
final Action3 <? super S , Long , ? super Observer <Observable <? extends T >>> next ,
143
143
final Action1 <? super S > onUnsubscribe ) {
@@ -165,7 +165,7 @@ public S call(S state, Long requested, Observer<Observable<? extends T>> subscri
165
165
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
166
166
* back-pressure.
167
167
*/
168
- @ Experimental
168
+ @ Beta
169
169
public static <S , T > AsyncOnSubscribe <S , T > createStateful (Func0 <? extends S > generator ,
170
170
Func3 <? super S , Long , ? super Observer <Observable <? extends T >>, ? extends S > next ,
171
171
Action1 <? super S > onUnsubscribe ) {
@@ -184,7 +184,7 @@ public static <S, T> AsyncOnSubscribe<S, T> createStateful(Func0<? extends S> ge
184
184
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
185
185
* back-pressure.
186
186
*/
187
- @ Experimental
187
+ @ Beta
188
188
public static <S , T > AsyncOnSubscribe <S , T > createStateful (Func0 <? extends S > generator ,
189
189
Func3 <? super S , Long , ? super Observer <Observable <? extends T >>, ? extends S > next ) {
190
190
return new AsyncOnSubscribeImpl <S , T >(generator , next );
@@ -203,7 +203,7 @@ public static <S, T> AsyncOnSubscribe<S, T> createStateful(Func0<? extends S> ge
203
203
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
204
204
* back-pressure.
205
205
*/
206
- @ Experimental
206
+ @ Beta
207
207
public static <T > AsyncOnSubscribe <Void , T > createStateless (final Action2 <Long , ? super Observer <Observable <? extends T >>> next ) {
208
208
Func3 <Void , Long , Observer <Observable <? extends T >>, Void > nextFunc =
209
209
new Func3 <Void , Long , Observer <Observable <? extends T >>, Void >() {
@@ -230,7 +230,7 @@ public Void call(Void state, Long requested, Observer<Observable<? extends T>> s
230
230
* @return an AsyncOnSubscribe that emits data downstream in a protocol compatible with
231
231
* back-pressure.
232
232
*/
233
- @ Experimental
233
+ @ Beta
234
234
public static <T > AsyncOnSubscribe <Void , T > createStateless (final Action2 <Long , ? super Observer <Observable <? extends T >>> next ,
235
235
final Action0 onUnsubscribe ) {
236
236
Func3 <Void , Long , Observer <Observable <? extends T >>, Void > nextFunc =
0 commit comments