23
23
import rx .Producer ;
24
24
import rx .Subscriber ;
25
25
import rx .Subscription ;
26
+ import rx .annotations .Beta ;
26
27
import rx .annotations .Experimental ;
27
28
import rx .exceptions .Exceptions ;
28
29
import rx .functions .Action0 ;
46
47
* @param <T>
47
48
* the type of {@code Subscribers} that will be compatible with {@code this}.
48
49
*/
49
- @ Experimental
50
+ @ Beta
50
51
public abstract class SyncOnSubscribe <S , T > implements OnSubscribe <T > {
51
52
52
53
/* (non-Javadoc)
@@ -126,7 +127,7 @@ protected void onUnsubscribe(S state) {
126
127
* next(S, Subscriber)})
127
128
* @return a SyncOnSubscribe that emits data in a protocol compatible with back-pressure.
128
129
*/
129
- @ Experimental
130
+ @ Beta
130
131
public static <S , T > SyncOnSubscribe <S , T > createSingleState (Func0 <? extends S > generator ,
131
132
final Action2 <? super S , ? super Observer <? super T >> next ) {
132
133
Func2 <S , ? super Observer <? super T >, S > nextFunc = new Func2 <S , Observer <? super T >, S >() {
@@ -155,7 +156,7 @@ public S call(S state, Observer<? super T> subscriber) {
155
156
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
156
157
* back-pressure.
157
158
*/
158
- @ Experimental
159
+ @ Beta
159
160
public static <S , T > SyncOnSubscribe <S , T > createSingleState (Func0 <? extends S > generator ,
160
161
final Action2 <? super S , ? super Observer <? super T >> next ,
161
162
final Action1 <? super S > onUnsubscribe ) {
@@ -183,7 +184,7 @@ public S call(S state, Observer<? super T> subscriber) {
183
184
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
184
185
* back-pressure.
185
186
*/
186
- @ Experimental
187
+ @ Beta
187
188
public static <S , T > SyncOnSubscribe <S , T > createStateful (Func0 <? extends S > generator ,
188
189
Func2 <? super S , ? super Observer <? super T >, ? extends S > next ,
189
190
Action1 <? super S > onUnsubscribe ) {
@@ -202,7 +203,7 @@ public static <S, T> SyncOnSubscribe<S, T> createStateful(Func0<? extends S> gen
202
203
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
203
204
* back-pressure.
204
205
*/
205
- @ Experimental
206
+ @ Beta
206
207
public static <S , T > SyncOnSubscribe <S , T > createStateful (Func0 <? extends S > generator ,
207
208
Func2 <? super S , ? super Observer <? super T >, ? extends S > next ) {
208
209
return new SyncOnSubscribeImpl <S , T >(generator , next );
@@ -221,7 +222,7 @@ public static <S, T> SyncOnSubscribe<S, T> createStateful(Func0<? extends S> gen
221
222
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
222
223
* back-pressure.
223
224
*/
224
- @ Experimental
225
+ @ Beta
225
226
public static <T > SyncOnSubscribe <Void , T > createStateless (final Action1 <? super Observer <? super T >> next ) {
226
227
Func2 <Void , Observer <? super T >, Void > nextFunc = new Func2 <Void , Observer <? super T >, Void >() {
227
228
@ Override
@@ -248,7 +249,7 @@ public Void call(Void state, Observer<? super T> subscriber) {
248
249
* @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
249
250
* back-pressure.
250
251
*/
251
- @ Experimental
252
+ @ Beta
252
253
public static <T > SyncOnSubscribe <Void , T > createStateless (final Action1 <? super Observer <? super T >> next ,
253
254
final Action0 onUnsubscribe ) {
254
255
Func2 <Void , Observer <? super T >, Void > nextFunc = new Func2 <Void , Observer <? super T >, Void >() {
0 commit comments